Is there a way to modify "annotation flag bits" of link? (original) (raw)
Is your feature request related to a problem? Please describe.
I would like to modify Annotation flag bits of links, but as Pymupdf's document reads bellow:
Annotation Types
These identifiers also cover links and widgets: the PDF specification technically handles them all in the same way, whereas MuPDF (and PyMuPDF) treats them as three basically different types of objects.
Describe the solution you'd like
So is it possible?
Such as: base on xref value, turns a Link object into an Annot object, so that method set_flags() can be used?
Additional context
When convert from PDF to PDFA, ghostscript removes hyperlink because the is_printed flag is 0. I want to try making it 1 and is_visible=0 is_hidden=1.