THPDFPage.AddRichMediaAnnotation Method
Adds rich media annotation data to the annotation and action workflow. The call creates or attaches the PDF-side object needed by later output, validation, signing, or page rendering steps
Declaration
procedure AddRichMediaAnnotation(Rectangle: TRect; const MediaFileName: AnsiString; const Contents: AnsiString= '');
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Rectangle | Page area or widget rectangle where the operation is applied |
MediaFileName | File path used as the source or destination for this operation |
Contents | Human-readable text stored in the PDF object, action, annotation, or structure element |
Return value
This member does not return a value
Usage notes
- Use this API in the annotation and action workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak