Skip to content
Discussion options

You must be logged in to vote

I am aware that desireable functionality is still missing in PyMuPDF:

  • while it is possible to add OCGs via doc.add_ocg(name, config=- 1, on=True, intent='View', usage='Artwork'), there is no way yet to update an existing OCG. Especially the OCG name might be interesting, because it is used in viewers as an identifier. Its other properties probably are less interesting (except maybe intent).
  • there is currently no way to influence the /Order entry of a layer. This entry decides if and how OCGs are to be presented by viewers. What I am doing now is simply appending any new OCG to that array, so it will appear in a viewer.

Replies: 7 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JustSaX
Comment options

Answer selected by JorjMcKie
Comment options

You must be logged in to vote
1 reply
@JustSaX
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JustSaX
Comment options

Comment options

You must be logged in to vote
4 replies
@JorjMcKie
Comment options

@JustSaX
Comment options

@JorjMcKie
Comment options

@JustSaX
Comment options

Comment options

You must be logged in to vote
1 reply
@JorjMcKie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants