AddPRCAnnotationFromStream

3D, annotations, streams, PDF 2.0

Description

Embeds PRC model data from the current stream position through 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

SourceAssigned stream with at least one remaining byte
Title, ViewNameNon-empty accessible title and default view name
Other parametersUse the geometry and lifecycle semantics described by AddPRCAnnotationFromFile

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