1
0
mirror of https://github.com/Llewellynvdm/pdflayers.git synced 2024-11-21 11:25:09 +00:00

Merge pull request #2 from SimonSegerblomRex/fix-1

Add /Order with all OCGs to OCG config
This commit is contained in:
Simon Segerblom Rex 2019-05-16 21:56:12 +02:00 committed by GitHub
commit 79bbdaab05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(