Creating page-level indexes
After you create triggers to define individual pages in page groups, you can create
index tags on the individual pages.
Note: 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. Then click .
- If the AFP file does not contain page definitions in page groups, create one or more page-level triggers.
- Select a page in a page group.
- Click the text that you want to index. The text blocks you can select are defined in the AFP file, from one character to the entire line of text. You see a red box around the text you selected.
- Right-click the text and click Create Index Tag. You see the Create Index Tag window with the text to index in the Edited index value field.
- Use the default code page encoding or select an encoding from the drop-down list if the text displays incorrectly.
- Type a descriptive name for the index tag in the Index tag name field. For example, if you select
Joe Smith
for the index tag, the name could beCustomer name
. - Click Page within page group for the index type.You see the Select index value type and Select page definition fields.
- Select the index value type:
- AFP file
- The index value is displayed in the Edited index value field. Decide whether you want to use the entire text value as the page-level index
or only part of the text. You can edit the text block to reduce the number of characters
you use for the index value (you cannot increase the characters in a text block).
To select part of the text as the index tag:
- Click Edit index value.
- Edit the index value in the Edit Value window. For example, if the account number
is one text block,
01-345678
, you can create an index value with part of the account number, such as345678
. - Click OK.
- User defined
- The User defined value field is displayed. Type the text you want for the index tag.
- Select an existing page definition from the drop-down list.
- Click the Advanced tab to change the threshold to look for a text value that is in slightly different
positions on some pages. You can select a range from 1/100 to 1 inch or from 1 to
25 millimeters. Although text might appear to be present in the same location on each
page, slight position variations can occur in the AFP file. The threshold defines
how far the text can be from the original location and be considered an index tag.
For example, a threshold value of 12 indicates that the index tag can be located within
.12 of an inch or 12 millimeters, either vertically or horizontally. Usually the default
threshold value is sufficient (10 for inches or 2 for millimeters).
Keep in mind that if you increase the threshold above the default value, you might create an index tag you did not expect because the match is only done on location, so the first text block found in the threshold range is used as the index tag.
- Click OK.
- Verify that the correct index tag has been created:
- Right-click on the page in the left pane and click Properties.The name of the index tag and its value are listed in the TLE field.
- To close the Properties window, click X in the upper right corner.
- If the index tag is incorrect, click to modify or delete the tag. Page-level indexes are listed under .
- Right-click on the page in the left pane and click Properties.