ClearPageAssociatedFiles

Embedded files

Description

Removes all associated-file bindings from one page

Syntax

Delphi

Function ClearPageAssociatedFiles(PageNumber: Integer): Integer;

Parameters

PageNumberOne-based page number whose /AF array is removed; only a page that actually carries a binding reports success

Return values

0The page is invalid or carried no /AF array
1The page /AF array was removed

Remarks

Only the page binding is removed; the embedded payload stays in the EmbeddedFiles name tree and remains reachable through document-level attachments

Example

PDF.ClearPageAssociatedFiles(1);

See also

AddAssociatedFileFromString, GetAssociatedFileCount