ClearPageAssociatedFiles

Embedded files

Description

Removes all associated-file bindings from one page

Syntax

Delphi

Function ClearPageAssociatedFiles(PageNumber: Integer): Integer;

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