Displaying sample AFP files
For example, if the AFP file contains text that you want to use in an index tag or in barcode data, choose a sample file that contains that text in the same position on the page as the production AFP files.
You can open one AFP file in AFP Visual Environment at a time. If an AFP file is already open, AFP Visual Environment automatically closes it and prompts you to save its control file if you have not already done so. After you open an AFP file, you can rotate the view, display selected pages, display different views, and increase the display size.
You can display the properties of page groups, pages, text, and AFP objects (such as page segments and overlays) in the AFP file. Page-group properties include the index tag values. Page properties include the type of AFP objects that are on the page, including page-level indexes. Text properties include font information and the location (in inches or millimeters) of the text.
- Note:
- If some text does not display correctly, you might need to identify the directory that contains the font resources to AFP Visual Environment, or you might need to modify AFP Visual Environment font mapping.
- Click . You see the Open window.
- Select the AFP file that you want to open and click Open.You see the AFP file in the right pane of the user interface. You also see the Open Control File window with the message: Do you want to use an existing control file for this AFP file?
- Do one of these:
- To create a control file, click No. If the AFP file contains index tags, you see the index tags in the bottom pane; otherwise, the bottom pane is blank.
- To display the file using an existing control file, click Yes. This is recommended if you have previously created a control file for this sample
AFP file. You see the Open window:
- Select the control file that you want to use.
- Click Open. If the control file contains definitions for index tags, or if the AFP file contains index tags, you see the index tags in the bottom pane; otherwise, the bottom pane is blank.
To the left of the AFP file, you see the page structure of the file, which can contain page groups and pages. You might also see a resource group entry at the top of the page structure if the file contains inline AFP resources, such as overlays and page segments. - To rotate the AFP file clockwise by 90 degrees, click o. Click again to rotate another 90 degrees.
- To navigate in the AFP file, do one of these:
- Click anywhere in the AFP file and press the Page Up or Page Down key on your keyboard.
- Double-click to select a page from the left pane.
- Double-click to select a page group from the bottom pane.
- To hide or display the page structure in the left pane, click .
- To hide or display the indexes in the bottom pane, click .
- To increase or decrease the display size of the AFP file, click (nnn is one of these percentages: 200, 175, 150, 125, 100, 75, 50.)The display size of the AFP file is increased or decreased by the percentage you select.
- To change units of measurement, do one of these:
- For inches, click .
- For millimeters, click .
- To display properties:
- Do one of these:
- In the left pane, click a resource, page group, or page. Right-click and click Properties.
- Click Mode and a feature. Then:
- Click text or an object in the AFP file. You see a red box around the text or object
you selected.
- Note:
- If you cannot select an object, it is not enabled for selection. See Enabling object selection in sample AFP files.
- Right-click and then click Properties.
- Click text or an object in the AFP file. You see a red box around the text or object
you selected.
- To see the complete text for a value:
- Double-click the green box.
- Click OK.
- To close the Properties window, click X in the upper right corner.
- Do one of these:
- If text does not display correctly:
- If the AFP file contains data that displays incorrectly, change the default code page to another code page (IBM850(GID=850) and an EBCDIC code page is IBM500(GID=500). ). For example, an ASCII code page is
- If the AFP file refers to AFP fonts that are not inline, identify the directories that contain font resources to AFP Visual Environment ( ).
- If the AFP file refers to custom AFP fonts, create custom font-mappings in AFP Visual Environment.
- If an error occurs when opening or working with a file, click , which closes the file and clears the cached resources from memory. Open the file again.