StructTreeRoot
Vue de l’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
| Name | Type | Access | Description |
|---|---|---|---|
pdfDictionary | PdfDictionary | Read | Returns the underlying PDF dictionary. |
rootElement | StructureElement | Read | Returns the root structure element (typically the /Document element). |
children | ElementList | Read | Returns all top-level structure elements. |
roleMap | RoleMap | Read | Returns the role map for this structure tree. |
parentTreeNextKey | int | Read | Returns the next available parent tree key (/ParentTreeNextKey). |
parentTree | NumberTree | Read | Returns 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. | |||
allElements | List<StructureElement> | Read | Returns all structure elements in the tree (depth-first traversal). |
méthodes
| Signature | Description |
|---|---|
StructTreeRoot(dict: PdfDictionary, parser: PDFParser) | Creates a StructTreeRoot wrapping the given dictionary. |
getPdfDictionary() → PdfDictionary | Returns the underlying PDF dictionary. |
getRootElement() → StructureElement | Returns the root structure element (typically the /Document element). |
getChildren() → ElementList | Returns all top-level structure elements. |
getRoleMap() → RoleMap | Returns the role map for this structure tree. |
getParentTreeNextKey() → int | Returns the next available parent tree key (/ParentTreeNextKey). |
getParentTree() → NumberTree | Returns 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) → PdfBase | Resolves a single {@code /ParentTree} key. |
findElementByMcid(structParentsKey: int, mcid: int) → StructureElement | Returns 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() → StructTreeRoot | Creates a new StructTreeRoot with a /Document root element. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise