pdftools_toolbox.pdf.content.ungrouping_selection
Classes
|
Used to control the behavior of content extraction. |
- class pdftools_toolbox.pdf.content.ungrouping_selection.UngroupingSelection(value)[source]
Bases:
IntEnum
Used to control the behavior of content extraction. Groups in the content can either be extracted as
pdftools_toolbox.pdf.content.group_element.GroupElement
s, or their content can be unpacked, in which case groups’ content elements are extracted as if not belonging to a group.- Variables:
NONE (int) – Groups are extracted as
pdftools_toolbox.pdf.content.group_element.GroupElement
sSAFELY_UNGROUPABLE (int) – Un-grouping is restricted to those groups that can be un-grouped without visual loss.
ALL (int) – Un-group all groups. Note that copying
pdftools_toolbox.pdf.content.content_element.ContentElement
s with un-grouping set topdftools_toolbox.pdf.content.ungrouping_selection.UngroupingSelection.ALL
can alter content’s visual appearance in the output document.
- NONE = 0
- SAFELY_UNGROUPABLE = 1
- ALL = 2