THPDFNamesFacade Class
Groups document name tree operations for embedded files, JavaScript entries, and named destinations
Declaration
THPDFNamesFacade = class(TObject)
Unit
HPDFDoc
Members
| Name | Purpose |
|---|---|
AddEmbeddedFile | Adds an embedded file entry through the document name tree facade |
AddJavaScript | Adds a named document-level JavaScript entry |
AddJavaScriptFunction | Adds a named JavaScript function wrapper to the document name tree |
AddNamedDestination | Adds a named destination that can be targeted by named-destination links |
LoadedEmbeddedFileCount | Returns the number of embedded-file names found in the loaded document |
LoadedEmbeddedFileName | Returns one loaded embedded-file name by zero-based index |
LoadedEmbeddedFileNames | Returns loaded embedded-file names as an array snapshot |
LoadedJavaScriptCount | Returns the number of document-level JavaScript names found in the loaded document |
LoadedJavaScriptName | Returns one loaded JavaScript name by zero-based index |
LoadedJavaScriptNames | Returns the loaded JavaScript name tree entries as an array snapshot |
LoadedJavaScriptSource | Returns the script source for a loaded JavaScript name |
LoadedNamedDestinationCount | Returns the number of named destinations found in the loaded document |
LoadedNamedDestinationName | Returns one loaded named-destination name by zero-based index |
LoadedNamedDestinationNames | Returns the loaded named destination entries as an array snapshot |
Usage notes
- Access this helper through
THotPDF.Names - Use it to keep embedded-file, JavaScript, and named-destination workflows separate from page content code
AddJavaScriptFunctionformats a named function from the supplied parameter list and body text- The loaded-name methods mirror the lower-level
THotPDF.GetLoaded*APIs and are convenience wrappers for enumeration code - Use the array-returning methods when a caller needs a stable snapshot before removing or rewriting loaded name tree entries