StructTreeRoot

StructTreeRoot

Vue d’ensemble

‘StructTreeRoot’ est une classe dans Aspose.PDF FOSS pour Java.

La racine de l’arbre de structure logique (ISO 32000-1:2008, §14.7.2, tableau 322).

Cette classe fournit 13 méthodes pour travailler avec les objets StructTreeRoot dans les programmes Java. Les méthodologies disponibles comprennent: ‘StructTREERoots’, ‘clearChilds’, createNew', ‘findElementByMcid’, 'findEls', ’getAllElements', ‚getChillren, ‘getParentTri , ' getParentsTreNextKey,, ‘gettPdfDictionary., 'GetRoleMap et 1 méthode supplémentaire. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : ‘all Elementss, children‘, ‘parent Tretree, ’NextTreykey‘t-pdf, et plus.

Propriétés

NameTypeAccessDescription
pdfDictionaryPdfDictionaryReadReturns the underlying PDF dictionary.
rootElementStructureElementReadReturns the root structure element (typically the /Document element).
childrenElementListReadReturns all top-level structure elements.
roleMapRoleMapReadReturns the role map for this structure tree.
parentTreeNextKeyintReadReturns the next available parent tree key (/ParentTreeNextKey).
parentTreeNumberTreeReadReturns the {@code /ParentTree} number tree (§14.7.4.4) — the reverse
map from a page’s structural parent key (the /StructParents entry on
the page) and from a content stream’s marked-content identifier
(MCID, indexed via the page entry) back to the structure element(s)
referencing them.
allElementsList<StructureElement>ReadReturns all structure elements in the tree (depth-first traversal).

méthodes

SignatureDescription
StructTreeRoot(dict: PdfDictionary, parser: PDFParser)Creates a StructTreeRoot wrapping the given dictionary.
getPdfDictionary() → PdfDictionaryReturns the underlying PDF dictionary.
getRootElement() → StructureElementReturns the root structure element (typically the /Document element).
getChildren() → ElementListReturns all top-level structure elements.
getRoleMap() → RoleMapReturns the role map for this structure tree.
getParentTreeNextKey() → intReturns the next available parent tree key (/ParentTreeNextKey).
getParentTree() → NumberTreeReturns the {@code /ParentTree} number tree (§14.7.4.4) — the reverse
map from a page’s structural parent key (the /StructParents entry on
the page) and from a content stream’s marked-content identifier
(MCID, indexed via the page entry) back to the structure element(s)
referencing them.
lookupParentTreeEntry(key: int) → PdfBaseResolves a single {@code /ParentTree} key.
findElementByMcid(structParentsKey: int, mcid: int) → StructureElementReturns the structure element that owns the marked-content with the
given MCID on a page identified by its {@code /StructParents} key.
getAllElements() → List<StructureElement>Returns all structure elements in the tree (depth-first traversal).
findElements(typeName: String) → List<StructureElement>Finds all structure elements matching the given structure type name.
clearChilds()Removes all child elements from the structure tree.
createNew() → StructTreeRootCreates a new StructTreeRoot with a /Document root element.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français