SaveAllAttachmentsEx
Document properties, extraction
Description
Exports every document-level and annotation attachment under an explicit conflict policy
The optional resolver receives each attachment before writing and may change its leaf name, conflict policy or Save flag
All resolved names are sanitised after the callback, directory components are discarded and Windows reserved device names receive a leading underscore
Syntax
Delphi
Function TPDFlib.SaveAllAttachmentsEx(Const OutputDir: WideString;
ConflictPolicy: TPDFlibAttachmentConflictPolicy;
OnResolveName: TPDFlibAttachmentNameResolver): Integer;Conflict policies
| acpOverwrite | Write the requested target even when it already exists |
|---|---|
| acpSkip | Skip a target already present on disk or selected earlier in the same export |
| acpRename | Add a numeric suffix until the target is unique on disk and within the export |
Return values
Returns the number of attachment files successfully written