Skip to content

Form fields can never be copied from a source PDF when using doc.insert_pdf() #3315

Answered by JorjMcKie
ag-gaphp asked this question in Q&A
Discussion options

You must be logged in to vote

Form fields, like annotations, are specific to the page for which they are defined.
But in contrast to them, widgets also are listed document-wide in a central dictionary called /AcroForm in the PDF's catalog. The fact that the array /AcroForm/Fields is not empty determines whether the PDF is a Form PDF. Other information may also be present in AcroForm like inter-field relationships and more.
Bottom line, like all document-wide, non-page related information and objects, widget-related information cannot be copied by a page-wise operation line .insert_pdf() - it is impossible to convert the receiving PDF into a Form PDF.
The same is true for a number of other document-wide objects and pro…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ag-gaphp
Comment options

@JorjMcKie
Comment options

@JorjMcKie
Comment options

Answer selected by ag-gaphp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants