pdftools_toolbox.pdf.copy_strategy

Classes

CopyStrategy(value)

The CopyStrategy defines how pdftools_toolbox.pdf.navigation.link.Link , pdftools_toolbox.pdf.annotations.annotation.Annotation , and unsigned pdftools_toolbox.pdf.forms.signature_field.SignatureField objects are handled when they are copied from an input document to an output document using the pdftools_toolbox.pdf.page.Page.copy() and pdftools_toolbox.pdf.page_list.PageList.copy() methods.

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 unsigned pdftools_toolbox.pdf.forms.signature_field.SignatureField objects are handled when they are copied from an input document to an output document using the pdftools_toolbox.pdf.page.Page.copy() and pdftools_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