AddRichMediaAnnotationFromEmbeddedFile

Rich media, annotations, associated files, payload reuse

Opis

Vytvorí RichMedia anotáciu, ktorej dictionary asset a inštancie odkazujú na existujúcu file specification vloženého súboru namiesto zápisu duplicitného media streamu

Syntax

Delphi

Function AddRichMediaAnnotationFromEmbeddedFile(Left, Top, Width, Height: Double; EmbeddedFileIndex: Integer; Const AssetName, Title, Description: WideString; MediaType: TPDFlibRichMediaType; Activation: TPDFlibRichMediaActivation; Deactivation: TPDFlibRichMediaDeactivation; PosterImageID: Integer= 0): Integer;

DLL and ActiveX

int AddRichMediaAnnotationFromEmbeddedFile(double Left, double Top, double Width, double Height, int EmbeddedFileIndex, string AssetName, string Title, string Description, int MediaType, int Activation, int Deactivation, int PosterImageID)

Return value

Vráti 1 pri úspechu alebo 0 pri zlyhaní

Poznámky

EmbeddedFileIndex is one-based and may come from GetAssociatedFileEmbeddedIndexThe method requires Adobe Extension Level 3, rejects PDF/A, and requires a nonempty description in PDF/UA mode

MediaType is 0 through 3, while activation and deactivation values are 0 through 2

ActiveX

PDFlib::AddRichMediaAnnotationFromEmbeddedFile(...)