ImportAnnotationsFromXFDF

Annotations and hotspot links

Description

Reads a UTF-8 XFDF file and imports annotation comments into the selected PDF document. This is the file-based counterpart of ImportAnnotationsFromXFDFString and supports the same <annots> subset, including hex annotation color, flags, creationdate, opacity, width, style, dashes, name and date attributes

Syntax

Delphi

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

Parameters

XFDFFileNamePath to a UTF-8 XFDF file containing annotation data

Return values

>= 0The number of annotations inserted into valid target pages

Remarks

Use ImportAnnotationsFromXFDFString when the XFDF XML is already available in memory