pdftools_toolbox.pdf.forms.form_field_copy_strategy
Classes
|
The FormFieldCopyStrategy defines how Form Fields are handled when they are copied from an input document to an output document using the |
- class pdftools_toolbox.pdf.forms.form_field_copy_strategy.FormFieldCopyStrategy(value)[source]
Bases:
IntEnum
The FormFieldCopyStrategy defines how Form Fields are handled when they are copied from an input document to an output document using the
pdftools_toolbox.pdf.page.Page.copy()
andpdftools_toolbox.pdf.page_list.PageList.copy()
methods.- Variables:
COPY (int) – The elements are copied as-is to the target document.
FLATTEN (int) – The elements are removed but the visible representation is retained.
REMOVE (int) – The elements are removed completely.
COPY_AND_UPDATE_WIDGETS (int) – Copy widgets that belong to form fields copied previously with
pdftools_toolbox.pdf.forms.field_node.FieldNode.copy()
. Any changes made to copied form fields are reflected in the widgets.
- COPY = 1
- FLATTEN = 2
- REMOVE = 3
- COPY_AND_UPDATE_WIDGETS = 4