pdftools_toolbox.pdf.copy_strategy
Classes
|
The CopyStrategy defines how |
- class pdftools_toolbox.pdf.copy_strategy.CopyStrategy(value)[source]
Bases:
IntEnum
The CopyStrategy defines how
pdftools_toolbox.pdf.navigation.link.Link
,pdftools_toolbox.pdf.annotations.annotation.Annotation
, and unsignedpdftools_toolbox.pdf.forms.signature_field.SignatureField
objects are handled when they are copied from an input document to an output document using thepdftools_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 = 1
- FLATTEN = 2
- REMOVE = 3