AddSVGAnnotationFromFileA

Vector graphics, Image handling, Annotations and hotspot links, Page layout

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to AddSVGAnnotationFromFile and string arguments are interpreted using the current SetAnsiMode code page

Adds an SVG file as an annotation to the current page. This is only supported if the PDF is viewed using Adobe Acrobat 6 or Adobe Reader 6. Earlier and later versions will not show the SVG annotation.

Syntax

Delphi

Function DLAddSVGAnnotationFromFileA(InstanceID: Integer; Left, Top, Width, Height: Double; FileName: PAnsiChar; Options: Integer): Integer;

DLL

int DLAddSVGAnnotationFromFileA(int InstanceID, double Left, double Top, double Width, double Height, const char * FileName, int Options);

Parameters

LeftThe horizontal co-ordinate of the left edge of the annotation rectangle
TopThe vertical co-ordinate of the top edge of the annotation rectangle
WidthThe width of the annotation rectangle
HeightThe height of the annotation rectangle The path and name of the file containing the SVG image.
FileName
OptionsThis parameter is ignored and should be set to 0

Return values

0The SVG file could not be opened
1The SVG annotation was added successfully