ExportAnnotationsToXFDF

Annotations and hotspot links

Description

Writes non-widget PDF annotations to a UTF-8 XFDF file. The file contains standard XFDF <annots> data and preserves the same annotation subset as ExportAnnotationsToXFDFString: page index, rectangle, color, flags, creationdate, opacity, width, style, dashes, name, date, title, subject and plain <contents> text

Syntax

Delphi

Function TPDFlib.ExportAnnotationsToXFDF(Const XFDFFileName: WideString): Integer;

Parameters

XFDFFileNamePath to the XFDF file to create

Return values

0No selected document is available or the file could not be written
1The XFDF file was written

Remarks

Use ExportAnnotationsToXFDFString when the caller wants the XML text in memory