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
| 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 | Assigned stream whose bytes from the current position to the end become the PRC data; at least one byte must remain, the remaining count must fit a signed 32-bit buffer, and the stream is consumed to its end on success |
| 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 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