THPDFAcroFormField.SetDefaultAppearance Method
Method summary: THPDFAcroFormField.SetDefaultAppearance Method
Declaration
function SetDefaultAppearance(const Value: AnsiString): THPDFAcroFormField;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Value | Complete PDF default-appearance string to store in the field /DA entry |
Return value
Returns Self for chained field configuration
Usage notes
- The value normally contains font, size, and colour operators used by viewers to regenerate appearances
- With authored appearances enabled, an ordinary text field using the supported
/Helv 0 Tfprofile rebuilds its normal appearance immediately with a positive content-fitting size whilst retaining the original zero-size field/DA - The finite profile permits one exact Helvetica font selection and optional finite
g,rgorkcolour operations, with PDF whitespace and comments - Create the field with appearance generation on, which is the default and also what
AutoFormAppearances=truegives you, then apply this request through the returned field handle; the existing PDF 2.0 appearance policy can also require generation - Stored values, defaults, flags and
MaxLenare preserved; positive-size and rich-text requests keep their existing setter behaviour - See authored Helvetica zero-size content fitting for layout-cell bounds, compatibility fallbacks and the separate loaded-field solver