mirror of
https://github.com/Llewellynvdm/pdflayers.git
synced 2024-11-21 19:35:09 +00:00
Add /Order with all OCGs to OCG config
This will make the layers toggable in Adobe Reader. Fixes #1
This commit is contained in:
parent
afae3e9b07
commit
e04390754e
@ -43,6 +43,7 @@ def set_layer_visibility(pdf, layers_to_show):
|
||||
ocgs_config = pikepdf.Dictionary(
|
||||
BaseState=pikepdf.Name('/OFF'),
|
||||
ON=ocgs_on,
|
||||
Order=ocgs,
|
||||
)
|
||||
|
||||
pdf.root.OCProperties = pikepdf.Dictionary(
|
||||
|
Loading…
Reference in New Issue
Block a user