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, color, flags, creationdate, opacity, width, style, dashes, name, date, title, subject and plain <contents> text for known XFDF annotation element names such as <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