AddU3DAnnotationFromFile

3D, annotations, engineering documents

Description

Embeds a U3D model as a printable 3D annotation on the current page

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, TopPosition of the upper-left corner of the annotation rectangle
Width, HeightPositive dimensions of the annotation rectangle
FileNamePath to a non-empty U3D model
Options0 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

See also

AddPRCAnnotationFromFile