pdftools_toolbox.pdf.forms.field_node

Classes

FieldNode(handle)

Base class for form fields and sub forms

class pdftools_toolbox.pdf.forms.field_node.FieldNode(handle)[source]

Bases: _NativeObject, ABC

Base class for form fields and sub forms

static copy(target_document: Document, field_node: FieldNode) FieldNode[source]

Copy a form field node

Copy a form field node object from an input document to the given targetDocument. The returned object is associated with the given target document but not yet part of it.

Parameters:
Returns:

the copied form field, associated with the current document

Return type:

pdftools_toolbox.pdf.forms.field_node.FieldNode

Raises:
property display_name: str | None

User interface name

The display name is not directly visible, but a PDF viewer can display this name, e.g., in a tool tip.

Returns:

Optional[str]

Raises:

StateError – if the object has already been closed

property export_name: str | None

The name used when exporting

Returns:

Optional[str]

Raises:

StateError – if the object has already been closed