Displaying sample AFP files

You can open a sample AFP file in AFP Visual Environment. The sample AFP file must be representative of production AFP files that you want to enhance in the same way as the sample file.

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.
To display a sample AFP file:
  1. Click File Open AFP file. You see the Open window.
  2. 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?
  3. 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:
      1. Select the control file that you want to use.
      2. 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.
  4. To rotate the AFP file clockwise by 90 degrees, click View Rotate by 90o. Click again to rotate another 90 degrees.
  5. 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.
  6. To hide or display the page structure in the left pane, click View File View.
  7. To hide or display the indexes in the bottom pane, click View Index View.
  8. To increase or decrease the display size of the AFP file, click View Zoom nnn (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.
  9. To change units of measurement, do one of these:
    • For inches, click View Units Inches.
    • For millimeters, click View Units Millimeters.
  10. To display properties:
    1. 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:
        1. Click text or an object in the AFP file. You see a red box around the text or object you selected.
        2. Right-click and then click Properties.
      A green box around a property value indicates that there is more text than what is displayed.
    2. To see the complete text for a value:
      1. Double-click the green box.
      2. Click OK.
    3. To close the Properties window, click X in the upper right corner.
  11. If text does not display correctly:
    • If the AFP file contains data that displays incorrectly, change the default code page to another code page (Resources Modify Default Encoding). For example, an ASCII code page is IBM850(GID=850) and an EBCDIC code page is IBM500(GID=500).
    • If the AFP file refers to AFP fonts that are not inline, identify the directories that contain font resources to AFP Visual Environment (Resources Specify Resource Directories).
    • If the AFP file refers to custom AFP fonts, create custom font-mappings in AFP Visual Environment.
  12. If an error occurs when opening or working with a file, click File Reset, which closes the file and clears the cached resources from memory. Open the file again.