AddPRCAnnotationFromStream

3D, annotations, streams, PDF 2.0

Description

Embeds PRC model data from the current stream position to the end of the stream

Syntax

Delphi

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

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
SourceAssigned stream with at least one remaining byte
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 or reading fails

Remarks

The remaining byte count must fit in a signed 32-bit buffer and the stream is consumed to its end on success