Merge pull request #2 from SimonSegerblomRex/fix-1
Add /Order with all OCGs to OCG config
This commit is contained in:
commit
79bbdaab05
|
@ -43,6 +43,7 @@ def set_layer_visibility(pdf, layers_to_show):
|
||||||
ocgs_config = pikepdf.Dictionary(
|
ocgs_config = pikepdf.Dictionary(
|
||||||
BaseState=pikepdf.Name('/OFF'),
|
BaseState=pikepdf.Name('/OFF'),
|
||||||
ON=ocgs_on,
|
ON=ocgs_on,
|
||||||
|
Order=ocgs,
|
||||||
)
|
)
|
||||||
|
|
||||||
pdf.root.OCProperties = pikepdf.Dictionary(
|
pdf.root.OCProperties = pikepdf.Dictionary(
|
||||||
|
|
Loading…
Reference in New Issue