AddRichMediaAnnotationFromEmbeddedFile

Rich media, annotations, associated files, payload reuse

Περιγραφή

Δημιουργεί σχόλιο RichMedia του οποίου τα λεξικά asset και instance αναφέρονται σε υπάρχον file specification ενσωματωμένου αρχείου αντί να γράψει διπλότυπο media stream

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)

Τιμή επιστροφής

Επιστρέφει 1 σε επιτυχία ή 0 σε αποτυχία

Παρατηρήσεις

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(...)