FillableField-New Elements/Attributes

Summary

The following new elements/attributes were added to the FillableField element:
  • FieldText
  • ToolTip
  • Underline
  • HorizontalAlignment.

The FillableField elment has been modified to apply FontScaling modification to produce true font height in the same manner as Expere content. The FillableField AcroForm field name on the PDF has been modified to match the value authored for the FieldName element (previously, it the name included appending a page number reference). The FillableField ‘autoscroll’ property was modified to truncate data for a fillable field if the number of characters exceeds the width of the field and/or exceeds the value authored for the NumberOfCharacters element.

Technical Notes

Instance.xsd was modified to add the following new elements/attributes to FillableField element:
  • FieldText
  • ToolTip
  • Underline
  • HorizontalAlignment.

expere\render\fop\AcroFormFields.java was modified to set autoscroll to do not scroll. Logic was added to set placement and baseline for the fillablefield; the placement of the field rectangle is computed from the desired baseline taking into account the total height of the field, the height of the font used for field data and the fact that the text will be middle aligned vertically. When a FillableField element is encountered in content, a structure is produced that marks the current location and reserves the required space plus a following space and adds the properties to the marking structure. During processing, the marking structure is placed by the formatting engine. Subsequently, the position and field properties are retrieved, and the marking structure is removed. After the PDF is generated, a post-processing operation adds the AcroForm text field object at the position indicated by the marking structure.

Implementation Notes

This feature requires an Expere Engine and a Requirements Editor Tool update.