ExportAnnotationsToXFDFString

Annotations and hotspot links

Description

Serialises non-widget PDF annotations to XFDF (XML Forms Data Format) <annots> data using the standard namespace and xml:space="preserve". The current interchange subset writes the page index, rectangle, colour, flags, creationdate, opacity, width, style, dashes, name, date, title, subject plain <contents> text, <inklist><gesture> stroke paths for <ink> annotations, and <vertices> coordinate lists for <polygon> and <polyline> annotations alongside <text>, <highlight>, <stamp>, and <link>

Syntax

Delphi

Function TPDFlib.ExportAnnotationsToXFDFString: WideString;

Parameters

None

Return values

WideStringUTF-16 XFDF XML text ready to save as UTF-8 or pass to another XFDF consumer

Remarks

Use ExportAnnotationsToXFDF when the XFDF should be written directly to a UTF-8 file