AddPRCAnnotationFromString

3D, annotations, memory input, DLL, ActiveX

Description

Embeds binary PRC model data from memory as a PDF 2.0 3D annotation

Syntax

Delphi

Function TPDFlib.AddPRCAnnotationFromString(Left, Top, Width, Height: Double; Const Source: AnsiString; Const Title, ViewName: WideString; Activation: TPDFlibRichMediaActivation; Deactivation: TPDFlibRichMediaDeactivation; Options: Integer): Integer;

DLL

int DLAddPRCAnnotationFromString(int InstanceID, double Left, double Top, double Width, double Height, const char* Source, int SourceLength, const wchar_t* Title, const wchar_t* ViewName, int Activation, int Deactivation, int Options);
int DLAddPRCAnnotationFromStringA(int InstanceID, double Left, double Top, double Width, double Height, const char* Source, int SourceLength, const char* Title, const char* ViewName, int Activation, int Deactivation, int Options);

ActiveX

Function PDFlib::AddPRCAnnotationFromString(Left As Double, Top As Double, Width As Double, Height As Double, Source As Variant, Title As String, ViewName As String, Activation As Long, Deactivation As Long, Options As Long) As Long

Parameters

Left, TopPosition of the upper-left corner of the annotation rectangle in current output units, converted with the document scale and origin
Width, HeightPositive dimensions of the annotation rectangle in current output units
SourceNon-empty binary PRC data; ActiveX accepts a byte array and DLL clients pass an explicit byte count
TitleNon-empty accessible title of the annotation
ViewNameNon-empty name of the default 3D view
ActivationrmaExplicit, rmaPageOpened, or rmaPageVisible
DeactivationrmdExplicit, rmdPageClosed, or rmdPageInvisible
Options0 hides the 3D artwork initially and 1 displays it initially

Return values

Returns 1 on success or 0 when validation fails