SetFormFieldPercentFormat
Form fields
Description
Gives a form field Acrobat percentage formatting by writing AFPercent_Keystroke / AFPercent_Format onto its additional actions, so the stored fraction is displayed as a percentage with the requested decimal places and separator style. Returns 1 on success, or 0 when the field does not exist or Decimals or SepStyle is out of range.
Syntax
Delphi
Function TPDFlib.SetFormFieldPercentFormat(Index, Decimals, SepStyle: Integer): Integer;
Parameters
Index is the 1-based field index. Decimals (0..10) sets the displayed decimal places and SepStyle selects the thousands/decimal separator style (0..3, as for SetFormFieldNumberFormat).
Return Values
Returns 1 on success, or 0 when the field does not exist or a selector is out of range.
Remarks
Writes the AFPercent_Keystroke/AFPercent_Format action pair; the field value is stored as a fraction and displayed as a percentage by the viewer.