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

NamePurpose
FieldNameAcroForm field name or field dictionary targeted by the helper
CaptionHuman-readable text stored in the PDF object, action, annotation, or structure element
ButtonRectInput used by AddPushButtonWithRenditionAction
ScreenAnnotInput used by AddPushButtonWithRenditionAction
MediaFileNameFile path used as the source or destination for this operation
MimeTypeInput used by AddPushButtonWithRenditionAction
OperationInput used by AddPushButtonWithRenditionAction
JavaScriptInput used by AddPushButtonWithRenditionAction
FlagsInput used by AddPushButtonWithRenditionAction

Return value

This member does not return a value

Usage notes

Related APIs