THPDFPage.AddPushButtonWithSoundAction Method

Adds push button with sound 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 AddPushButtonWithSoundAction(const FieldName, Caption: AnsiString; Rectangle: TRect; const SoundFileName: AnsiString; const SoundParams: THPDFSoundParams; Volume: Single= 1.0; Repeating: boolean= false; Synchronous: boolean= false; Flags: THPDFFormFieldFlags= []); overload;

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
RectanglePage area or widget rectangle where the operation is applied
SoundFileNameFile path used as the source or destination for this operation
SoundParamsInput used by AddPushButtonWithSoundAction
VolumeInput used by AddPushButtonWithSoundAction
RepeatingInput used by AddPushButtonWithSoundAction
SynchronousInput used by AddPushButtonWithSoundAction
FlagsInput used by AddPushButtonWithSoundAction

Return value

This member does not return a value

Usage notes

Related APIs