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:
IntEnumUsed to control the behavior of content extraction. Groups in the content can either be extracted as
pdftools_toolbox.pdf.content.group_element.GroupElements, 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.GroupElementsSAFELY_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.ContentElements with un-grouping set topdftools_toolbox.pdf.content.ungrouping_selection.UngroupingSelection.ALLcan alter content’s visual appearance in the output document.
- NONE = 0
- SAFELY_UNGROUPABLE = 1
- ALL = 2