AddU3DAnnotationFromFile
Vector graphics, Image handling, Annotations and hotspot links, Page layout
Description
Adds an SVG file as an annotation to the current page. The SVG annotation will only be visible if the PDF is viewed with Adobe Acrobat 7 or higher.
Syntax
Delphi
Function TPDFlib.AddU3DAnnotationFromFile(Left, Top, Width, Height: Double; Const FileName: WideString; Options: Integer): Integer;
ActiveX
Function PDFlib::AddU3DAnnotationFromFile(Left As Double, Top As Double, Width As Double, Height As Double, FileName As String, Options As Long) As Long
DLL
int DLAddU3DAnnotationFromFile(int InstanceID, double Left, double Top, double Width, double Height, const wchar_t* FileName, int Options);
int DLAddU3DAnnotationFromFileA(int InstanceID, double Left, double Top, double Width, double Height, const char* FileName, int Options);
Parameters
| Left, Top | Position of the upper-left corner of the annotation rectangle |
|---|---|
| Width, Height | Positive dimensions of the annotation rectangle |
| FileName | Path to a non-empty U3D model |
| Options | 0 hides the 3D artwork initially and 1 displays it initially |
Return values
Returns 1 when the annotation has been added. Returns 0 when the file cannot be read, Width or Height is not positive, the document compliance mode does not allow 3D annotations, or the annotation could not be created.
Remarks
The annotation includes a named default view, page-open activation, explicit deactivation, printable flags, and a normal appearance
PDF/A output is accepted only for PDF/A-4e; other PDF/A profiles reject 3D annotations