A PDF document is created using a document template with empty fields as place holders for text, e.g. the address of a customer in an advertising letter. At runtime the fields are filled with text.
<testcase name="noTextOverflow_AllFields"> <assertThat testDocument="acrofields/fieldsWithAttributes.pdf"> <hasFields> <allWithoutTextOverflow /> </hasFields> </assertThat> </testcase>
A similar test can be done with one field:
<testcase name="noTextOverflow_Field_AlignLeft"> <assertThat testDocument="acrofields/fieldSizeAndText.pdf"> <hasField withName="Textfield, text inside, align left:" > <withoutTextOverflow /> </hasField> </assertThat> </testcase>
Chapter 3.11: “Form Fields - Text Overflow” describes this subject in detail.