Layer | PDSEdit_Layer |
Object | PDSTreeRoot |
All logical structure information is in the structure tree, and the PDSTreeRoot is its root. There is at most one PDSTreeRoot in each document.
Typedef | ||
---|---|---|
PDSTreeRoot
The root of the structure tree, which is a central repository for information related to a PDF document's logical structure. There is at most one PDSTreeRoot in each document.
|
Method | ||
---|---|---|
Creates a PDSClassMap in the specified tree root.
|
||
Creates and sets the PDSRoleMap of the specified StructTreeRoot element. Any previously existing PDSRoleMap is unlinked.
|
||
Gets the PDSClassMap object for the specified structure tree root.
|
||
ASBool PDSTreeRootGetElementFromID(INPDSTreeRoot treeRoot, IN const char* id, INASInt32 numChars, OUTPDSElement* element)
Gets the element associated with the given ID, if any.
|
||
Gets the kid at an array index in the specified structure tree root.
|
||
ASInt32 PDSTreeRootGetNumKids(INPDSTreeRoot treeRoot)
Gets the number of kids of the structure tree root.
|
||
Gets the PDSRoleMap object for the specified structure tree root.
|
||
Inserts the specified kid element after the given position as a kid of the specified structure tree root.
|
||
void PDSTreeRootRemoveClassMap(INPDSTreeRoot treeRoot)
Removes the PDSClassMap of the specified structure tree root element. It does nothing if one does not exist.
|
||
Removes the specified kid element from the specified structure tree root.
|
||
void PDSTreeRootRemoveRoleMap(INPDSTreeRoot treeRoot)
Removes the PDSRoleMap of the specified structure tree root element. It does nothing if one does not exist.
|
||
Replaces structural element oldKid with element newKid as a kid of treeRoot.
|
||
Updates the stream entries (Stm) in marked content reference dictionaries to reference a new Cos stream object. It replaces references to the old stream with refererences to the new stream.
|
PDSTreeRoot |
Product availability: All |
Platform availability: All |
typedef CosObj PDSTreeRoot;
The root of the structure tree, which is a central repository for information related to a PDF document's logical structure. There is at most one PDSTreeRoot in each document.
See Also
File: PDSExpT.h |
Line: 95 |
PDSTreeRootCreateClassMap | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDSTreeRootCreateClassMap(INPDSTreeRoot treeRoot, OUTPDSClassMap* classMap)
Creates a PDSClassMap in the specified tree root.
Any previously existing PDSClassMap is unlinked.
This may raise various exceptions.
Parameters
treeRoot — | The structure tree root in which to create a PDSClassMap. |
|
classMap — | (Filled by the method) The newly created PDSClassMap. |
See Also
Since
File: PDSWriteProcs.h |
Line: 183 |
PDSTreeRootCreateRoleMap | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDSTreeRootCreateRoleMap(INPDSTreeRoot treeRoot, OUTPDSRoleMap* roleMap)
Creates and sets the PDSRoleMap of the specified StructTreeRoot element. Any previously existing PDSRoleMap is unlinked.
This may raise various exceptions.
Parameters
treeRoot — | The structure tree root in which to create a PDSRoleMap. |
|
roleMap — | (Filled by the method) The newly created PDSRoleMap. |
See Also
Since
File: PDSWriteProcs.h |
Line: 150 |
PDSTreeRootGetClassMap | () |
Product availability: All |
Platform availability: All |
ASBool PDSTreeRootGetClassMap(INPDSTreeRoot treeRoot, OUTPDSClassMap* classMap)
Gets the PDSClassMap object for the specified structure tree root.
This may throw various exceptions.
Parameters
treeRoot — | The structure tree root whose PDSClassMap is obtained. |
|
classMap — | (Filled by the method) A pointer to a location in which to return the class map, if one exists. Set it to CosNull if there is no class map. If a |
|
See Also
Since
File: PDSReadProcs.h |
Line: 126 |
PDSTreeRootGetElementFromID | () |
Product availability: All |
Platform availability: All |
ASBool PDSTreeRootGetElementFromID(INPDSTreeRoot treeRoot, IN const char* id, INASInt32 numChars, OUTPDSElement* element)
Gets the element associated with the given ID, if any.
Parameters
treeRoot — | The structure tree root in which to search for |
|
id — | A pointer to a buffer containing the ID to search for. |
|
numChars — | The number of characters in |
|
element — | (Filled by the method) The element corresponding to |
|
See Also
Exceptions
id
is NULL
or numChars
is zero or less. IDTree
value in treeRoot
is not a dictionary. Since
File: PDSReadProcs.h |
Line: 149 |
PDSTreeRootGetKid | () |
Product availability: All |
Platform availability: All |
void PDSTreeRootGetKid(INPDSTreeRoot treeRoot, INASInt32 index, OUTPDSElement* kid)
Gets the kid at an array index in the specified structure tree root.
Parameters
treeRoot — | The structure tree root whose kid is obtained. |
|
index — | The index of the kid to obtain. |
|
kid — | (Filled by the method) A pointer to the kid at |
See Also
Exceptions
Since
File: PDSReadProcs.h |
Line: 90 |
PDSTreeRootGetNumKids | () |
Product availability: All |
Platform availability: All |
ASInt32 PDSTreeRootGetNumKids(INPDSTreeRoot treeRoot)
Gets the number of kids of the structure tree root.
This may throw various exceptions.
Parameters
treeRoot — | IN/OUT The structure tree root whose number of kids is obtained. |
The number of kids of the structure tree root. |
See Also
Since
File: PDSReadProcs.h |
Line: 73 |
PDSTreeRootGetRoleMap | () |
Product availability: All |
Platform availability: All |
ASBool PDSTreeRootGetRoleMap(INPDSTreeRoot treeRoot, OUTPDSRoleMap* roleMap)
Gets the PDSRoleMap object for the specified structure tree root.
This may throw various exceptions.
Parameters
treeRoot — | The structure tree root whose PDSRoleMap is obtained. |
|
roleMap — | (Filled by the method) A pointer to a location in which to return the role map, if one exists. Set it to CosNull if there is no role map. If a |
|
See Also
Since
File: PDSReadProcs.h |
Line: 108 |
PDSTreeRootInsertKid | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDSTreeRootInsertKid(INPDSTreeRoot treeRoot, INPDSElement kid, INASInt32 insertAfter)
Inserts the specified kid element after the given position as a kid of the specified structure tree root.
This may raise various exceptions.
Parameters
treeRoot — | IN/OUT The structure tree root in which a kid is inserted. |
|
kid — | IN/OUT The kid to insert. |
|
insertAfter — | IN/OUT The position after which the kid is inserted. If |
See Also
Since
File: PDSWriteProcs.h |
Line: 100 |
PDSTreeRootRemoveClassMap | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDSTreeRootRemoveClassMap(INPDSTreeRoot treeRoot)
Removes the PDSClassMap of the specified structure tree root element. It does nothing if one does not exist.
This may raise various exceptions.
Parameters
treeRoot — | The structure tree root whose PDSClassMap is removed. |
See Also
Since
File: PDSWriteProcs.h |
Line: 197 |
PDSTreeRootRemoveKid | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDSTreeRootRemoveKid(INPDSTreeRoot treeRoot, INPDSElement kid)
Removes the specified kid element from the specified structure tree root.
This may raise various exceptions.
Parameters
treeRoot — | IN/OUT The structure tree root whose kid is removed. |
|
kid — | IN/OUT The kid to remove. |
See Also
Since
File: PDSWriteProcs.h |
Line: 117 |
PDSTreeRootRemoveRoleMap | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDSTreeRootRemoveRoleMap(INPDSTreeRoot treeRoot)
Removes the PDSRoleMap of the specified structure tree root element. It does nothing if one does not exist.
This may raise various exceptions.
Parameters
treeRoot — | The structure tree root whose PDSRoleMap is removed. |
See Also
Since
File: PDSWriteProcs.h |
Line: 165 |
PDSTreeRootReplaceKid | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDSTreeRootReplaceKid(INPDSTreeRoot treeRoot, INPDSElement oldKid, INPDSElement newKid)
Replaces structural element oldKid
with element
newKid
as a kid of treeRoot
.
This may raise various exceptions.
Parameters
treeRoot — | IN/OUT The structure tree root whose kid is replaced. |
|
oldKid — | IN/OUT The kid to replace. |
|
newKid — | IN/OUT The kid that is replacing |
See Also
Since
File: PDSWriteProcs.h |
Line: 134 |
PDSTreeRootReplaceStreamRef | () |
Product availability: Acrobat, PDFL |
Platform availability: Macintosh, Windows, UNIX |
void PDSTreeRootReplaceStreamRef(PDSTreeRoot treeRoot, CosObj oldStream, CosObj newStream)
Updates the stream entries (Stm) in marked content reference dictionaries to reference a new Cos stream object. It replaces references to the old stream with refererences to the new stream.
This may raise various exceptions.
Parameters
treeRoot — | The structure tree root in which stream references are updated. |
|
oldStream — | The stream reference to replace. |
|
newStream — | The stream reference that is replacing |
Since
File: PDSWriteProcs.h |
Line: 885 |