You are here: Available Utilities > M > MRG2FAP > Adding PDF Bookmarks

Adding PDF Bookmarks

You can add bookmarks to your PDF output when converting AFP files into FAP files and then into PDF files using the MRG2FAP utility. The bookmarks on the AFP file are TLE records.

Use the Bookmark option to tell the system how to create bookmarks:

< PrtType:PDF >
  Bookmark = Yes,Page,No

Option

Description

Bookmark

This option contains three values. Separate the values with commas (,).

The first value enables bookmarks. Enter Yes to tell the system to create bookmarks. The default is No.

The second value indicates the lowest level for which the system will create bookmarks. You can choose from Formset, Group, Form, or Page. For example, if you enter Form, the system creates bookmarks for each form set, for each group in all form sets, and for each form in all of the groups. The default is Page.

Use the third value to turn off generic bookmarks for all pages. For example, enter No if you do not want every page to have a bookmark like Page 01, Page 02, Page 03, and so on.

If you only want TLE bookmarks to appear, enter No for the third value.

You can add TLE support to your AFP printer driver by including these options in your AFP printer control group:

< PrtType:AFP >
  TLEScript	= TLE.DAL
  TLEEveryPage	= No
  TLESeparator	= :

Then use this DAL script to create a TLE script for the page. The word BOOKMARK must appear at the beginning of the comment. The text that immediately follows BOOKMARK will comprise the bookmark for that page. Here is an example:

bkmark = 'BOOKMARK'
bkmrktext = 'Introduction and Comments'
AddComment (bkmark & bkmrktext);
RETURN('FINISHED!')

This would create the following TLE record for the corresponding page:

BOOKMARKIntroduction and Comments

The AFP loader would then translate the TLE record into a PDF bookmark when the AFP file was converted using the MRG2FAP utility.

For more information on adding TLE scripts to an AFP file, please see Adding TLE Records in the Documaker Administration Guide.

Note Keep in mind the bookmarks are only passed through the FAP file. There is no way to edit bookmarks.