THPDFEmbeddedTargetKind Type
Selects how a given entry in a GoToE embedded-document target path addresses its destination
Declaration
THPDFEmbeddedTargetKind= (etkParent, etkChildByName,
etkChildByAnnotationIndex, etkChildByAnnotationName,
etkChildByPageIndexAnnotationName,
etkChildByPageNameAnnotationIndex);
Unit
HPDFDoc
Values
| Value | Purpose |
|---|---|
etkParent | Parent-document step of the path; serialisation emits only the /R key with value /P and no targeting data |
etkChildByName | Child document selected through an EmbeddedFiles name-tree entry; EmbeddedFileName becomes the /N string beside /R /C |
etkChildByAnnotationIndex | Child document reached through a file-attachment annotation identified by page index plus annotation index, written as the numeric /P and /A entries |
etkChildByAnnotationName | Child document reached through a file-attachment annotation identified by page name plus annotation name, written as the /P and /A strings |
etkChildByPageIndexAnnotationName | Child document reached through a file-attachment annotation identified by a numeric page index together with the annotation /NM name, written as the numeric /P entry and the text-string /A entry |
etkChildByPageNameAnnotationIndex | Child document reached through a file-attachment annotation identified by a page name together with a numeric annotation index, written as the string /P entry and the numeric /A entry |
Usage notes
- Build target paths with the
HPDFEmbeddedParentTarget,HPDFEmbeddedFileTargetandHPDFEmbeddedAnnotationTargethelpers so each entry fills only the fields its kind reads - Serialisation raises an exception when a child entry leaves the fields required by its kind empty, such as an empty
EmbeddedFileNameunderetkChildByName - The path serialises from the last entry backwards, nesting each step under the
/Tkey of the previous entry to form the ordered chain