Creating text with AFP Editor
For example, you can add page numbers or you can add text so that the information in a barcode is also printed as readable text.
You can create text in an AFP file from:
- Text you enter from the keyboard
- Index tags defined in each page group
- Page number or page count property values
To determine the position of the new text, work from a copy of the sample AFP file printed on the production printer. Measure where you want to place the top-left corner of the text area (X and Y positions) on the printed page from the top-left corner of the logical page.
- In AFP Visual Environment you can display measurement units in inches or millimeters. To change the measurement unit, click .
- In AFP Visual Environment, open a sample AFP file.
- If the file does not contain page groups, use AFP Indexer to create page groups.
- Click .
- To create an area for the text, position your cursor at a corner of the area you want to create. While pressing the left mouse button, draw a box the size you want.
- Right-click anywhere in the AFP file and then click Create Text.You see the Create Text String window.
- On the Text tab, type a descriptive name for the text area in the Text definition name field.
- In the Text string data section, create a text string.For example, to add the page number, such as "Page 1 of 10", to the first page of each page group:
You see the text string value in the field below the data fields.
- Type Page in the Text field and click Add.
- Select Page in Page Group from the Property drop-down list and click Add. Page in Page Group is the number of the page in the page group.
- Type of in the Text field and click Add.
- Select Page Group Page Count from the Property drop-down list and click Add. Page Group Page Count is the total number of pages in the page group.
- Optional: To edit the text string, select a line of data and use Up or Down to change the order of the line or Remove to delete the line.Remember to add blank characters between words if you need to.
- Optional: Select a color for the text from the Color drop-down list.
- Optional: On the Font tab, select one of these:
- Core Fonts
- From the drop-down lists, select the character set and code page, and, if the font is an outline font, the point size in the Font Information section.
- External Fonts
- Type a character set and code page pair, a coded font name, or all three. For double-byte
character set (DBCS) fonts, use the coded font name only.
- If you enter a code page that is part of a DBCS-coded font, you see an error message that suggests you use the coded font name instead.
- On your workstation, if the font size does not exist for the color you selected, your display defaults to 12 black, even though the final AFP file will have the correct font and color.
- Optional: On the Position tab, change the origin (top-left corner), size, and orientation of the text area.
Specify the origin and size in inches or millimeters. Decimal values (such as 2.5)
are allowed. The fields are:
Note: If you rotated the AFP file using the Rotate by 90o option on the View menu, measure the X and Y positions from the top-left corner of the logical page in the unrotated view.
- X position
- The horizontal distance of the left side of the area measured from the left side of the logical page (not the physical sheet of paper).
- Y position
- The vertical distance of the top of the area measured from the top of the logical page (not the physical sheet of paper).
- The horizontal width of the area.
- The vertical height of the area.
- The number of degrees the text is rotated in the defined area: 0o, 90o, 180o, 270o
- Click OK. You see the text in the AFP file.
- Repeat steps 4 to 12 to add text to another page in each page group. For example, select the second page to add "Page 2 of 10" to the second page of each page group.