THPDFPage.AddPushButtonWithRenditionAction Method
Adds push button with rendition action data to the AcroForm workflow. The call creates or attaches the PDF-side object needed by later output, validation, signing, or page rendering steps
Declaration
procedure AddPushButtonWithRenditionAction(const FieldName, Caption: AnsiString; ButtonRect: TRect; ScreenAnnot: THPDFDictionaryObject; const MediaFileName: AnsiString; const MimeType: AnsiString; Operation: THPDFRenditionOperation= roPlayOrResume; const JavaScript: AnsiString= ''; Flags: THPDFFormFieldFlags= []);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldName | AcroForm field name or field dictionary targeted by the helper |
Caption | Human-readable text stored in the PDF object, action, annotation, or structure element |
ButtonRect | Input used by AddPushButtonWithRenditionAction |
ScreenAnnot | Input used by AddPushButtonWithRenditionAction |
MediaFileName | File path used as the source or destination for this operation |
MimeType | Input used by AddPushButtonWithRenditionAction |
Operation | Input used by AddPushButtonWithRenditionAction |
JavaScript | Input used by AddPushButtonWithRenditionAction |
Flags | Input used by AddPushButtonWithRenditionAction |
Return value
This member does not return a value
Usage notes
- Use this API in the AcroForm 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