THotPDF.RemoveLoadedEmbeddedFile Method
Removes a specified embedded attachment from the embedded file name tree of the loaded PDF document by filename
Declaration
procedure RemoveLoadedEmbeddedFile(const AFileName: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AFileName | The filename under which the embedded file is registered in the name tree; it must exactly match the name used when embedding |
Usage notes
This member returns no value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field or catalogue object is finalised
- After deleting the embedded file, any annotation links in the document that reference the attachment will become dangling references; it is recommended to process related annotations at the same time
- Changes must be saved before they can become persistent