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 LongParameters
| Left, Top | Position of the upper-left corner of the annotation rectangle in current output units, converted with the document scale and origin |
|---|---|
| Width, Height | Positive dimensions of the annotation rectangle in current output units |
| Source | Non-empty binary PRC data; ActiveX passes a byte array while DLL clients supply an explicit byte count |
| Title | Non-empty accessible title of the annotation |
| ViewName | Non-empty name of the default 3D view |
| Activation | rmaExplicit, rmaPageOpened, or rmaPageVisible |
| Deactivation | rmdExplicit, rmdPageClosed, or rmdPageInvisible |
| Options | 0 hides the 3D artwork initially and 1 displays it initially |
Return values
Returns 1 on success or 0 when validation fails