RemoveEmbeddedFile
Document properties
Description
Removes the specified embedded file from the document.
Removal detaches the selected attachment name and retains payloads still referenced by other attachment names or file-attachment annotations; associated-file membership is retained while another attachment name refers to the same file specification
Syntax
Delphi
Function TPDFlib.RemoveEmbeddedFile(Index: Integer): Integer;
ActiveX
Function PDFlib::RemoveEmbeddedFile(Index As Long) As Long
DLL
int DLRemoveEmbeddedFile(int InstanceID, int Index);
Parameters
| Index | The index of the embedded file. Must be a value between 1 and the value returned by EmbeddedFileCount. |
|---|
Return values
| 0 | The embedded file could not be removed. |
|---|---|
| 1 | The embedded file was successfully removed from the document. |