THotPDF.GetLoadedEmbeddedFileNames Method
Gets a list of names for all embedded attachment files in the loaded PDF document
Declaration
function GetLoadedEmbeddedFileNames: THPDFAnsiStringArray;
Unit
HPDFDoc
Return value
| Name | Purpose |
|---|---|
| This member takes no explicit parameters | |
Return value
Returns a THPDFAnsiStringArray value
Usage notes
- The returned names match the keys stored in the PDF name tree and can be passed straight to SaveLoadedEmbeddedFileToDisk
- The embedded filename may contain path separators or special characters, and must undergo necessary escaping or sanitisation before being used as a file system path
- Compliant formats such as PDF/A-3 often carry source data in embedded files; when processing such documents, combine this with GetLoadedEmbeddedFileCount