Specify Table of Contents
- 1 Overview
- 2 Specify a TOC template file
- 3 Add TOC entries to input files
- 4 Specify TOC formatting options
- 4.1 Text Attributes
- 4.2 Page Attributes
- 4.3 TOC Attributes
- 4.4 Color Space
If you specify a PDF file to use as a template for a Table of Contents, AppendPDF DE creates a Table of Contents with an entry for each input file, including the page number of, and a bookmark to, the first page in the file.
In order to create a complete Table of Contents:
This section specifies a PDF file that AppendPDF DE uses as a template for the Table of Contents of the output document.
To specify the TOC template file, in the Table of Contents pane:
- Click Add File.
> The Select a TOC PDF file dialog appears.
- Browse to the directory which contains the TOC template PDF file.
- Select the TOC template file.
- Click Add.
Note: If you do not add a TOC template file, no Table of Contents will be generated.
Remove the TOC Template file
To remove the TOC Template file:
- From the Menu bar, select Remove > TOC.
> You are prompted to confirm.
- Click Yes to remove the TOC template file and stamp.
Specify a TOC Stamp
To add a stamp to the TOC of the appended document, in the Table of Contents pane:
- Click Add Stamp.
> The Select a Stamp file dialog appears.
- Browse to the directory which contains the stamp file.
- Select the Stamp file.
- Click Add. For more information about Stamp files, see Tips below.
Remove TOC stamp
To remove the TOC stamp:
- From the Menu bar, select Remove > TOC Stamp.
> You are prompted to confirm.
- Click Yes to remove the TOC stamp file.
- Full, OS-specific paths must be used in all cases. AppendPDF DE will automatically use the correctly formatted, full path when you add files. If you use a pre-existing XML parameter file, make sure it specifies full path names. On Windows, you cannot type in the file name.
- Drag files onto the File Name and Stamp File fields in the AppendPDF DE Table of Contents pane.
- AppendPDF DE will only use the first page of the Table of Contents file. It will add more pages as needed.
- A stamp is a piece of text or an image that is placed in your document, as if it is “stamped” onto the page. Text or images added by stamping become a permanent part of the document. A stamp file is a text file you create that specifies how AppendPDF DE applies stamps. For information on creating stamp files, refer to our StampPDF Batch documentation. The stamp file specified in the Table of Contents pane only applies to the Table of Contents of the document. It does not apply to the body of the document or the Cover Page.
You can specify any text to use as the entry in the TOC for each file. If you do not specify a TOC entry, AppendPDF DE will use the filename.
To add a TOC entry, in the Input pane:
- Click Show TOC Entries.
> The Input pane changes to show the Filename and TOC Entry.
- Locate the file you want to change.
- Click on the TOC Entry cell for that file.
> The TOC Entry cell becomes editable.
- Type the text you would like for the Table of Contents entry.
- Press Enter.
- Repeat for each input file.
If you later need to add files or modify page ranges, click Hide TOC Entries. AppendPDF DE remembers the TOC Entries when switching back to the Page Range view.
You can customize the Table of Contents for your needs by specifying various formatting options. You can specify:
- Text Attributes — Font and size.
- Page Attributes — Margins.
- TOC Attributes — Leader, linespace, and placement of numbers.
- Color Space — The color of the TOC entries.
See the Sample TOC page for examples of each setting. To Specify TOC formatting options:
- From the Menu bar, select Options > TOC.
- Fill in or choose the options described below.
TOC Bookmark Text
Specifies text to appear in the bookmark pane identifying the Table of Contents. The default is “Table of Contents” but you can call it anything you want.
Specifies the name of the font for the TOC text. Default is Times-Roman.
Specifies the size of the font. Default is 14.
Name and path of the font file, if needed.
There are two types of fonts AppendPDF DE can use:
- One of the Base 14 fonts
- A PostScript Type 1 font
The names of the 14 base fonts are:
- Courier, Courier-Bold, Courier-Oblique, Courier-BoldOblique
- Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique
- Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic
If you use a PostScript Type 1 font, specify the PostScript name of the font. Refer to the font user documentation for the exact spelling of the font name.
You cannot use TrueType or OpenType fonts with AppendPDF Pro. If you use a font other than a Base 14 font, it must be a PostScript Type 1 font.
If you specify a PostScript Type 1 font, you must supply the font name, and the path and name of the font file:
- Type 1 fonts use two files, a .pfb and a .pfm file. Both files need to be in the same directory, but you specify the .pfb file.
- If there is a conflict between Font Name and Font File, the information in the font file overrides the font name.
Specifies the left margin, in points. Default is 72 points (1 inch).
Specifies the right margin, in points. Default is 72 points (1 inch).
Specifies the distance, in points, from the top of the page box to the start of the Table of Contents entries. Default is 72 points (1 inch).
Specifies the distance, in points, from the bottom of the page box to the end of the Table of Contents entries. Default is 72 points (1 inch).
Specifies the boundaries that AppendPDF DE measures from to determine where to place TOC elements.
- Mediabox — Empty element that tells AppendPDF DE to use the media box as the page box. The media box defines the maximum imageable area of the physical medium on which the page is to be printed. This is the default value.
- Cropbox — Empty element that tells AppendPDF DE to use the crop box as the page box. The crop box defines the region to which the contents of the page are to be clipped (cropped) when displayed or printed. If your printing process specifies an area to crop, make sure to specify cropbox to make sure the TOC does not fall outside the viewable area.
- Artbox — Empty element that tells AppendPDF DE to use the art box as the page box. The art box defines the extent of the page’s meaningful content as intended by the page’s creator.
- Bleedbox — Empty element that tells AppendPDF DE to use the bleed box as the page box. The bleed box defines the region to which the contents of the page should be clipped when output in a production environment. This may include any extra “bleed area” needed to accommodate the physical limitations of cutting, folding, and trimming equipment.
- Trimbox — Empty element that tells AppendPDF DE to use the trim box as the page box. The trim box defines the intended dimensions of the finished page after trimming.
Specifies the leader character, the character used in the space from the end of the text to the page number.
- If you do not specify a leader, long TOC entries will wrap to a new line. Consider this when choosing LineSpace or TOC entries may overlap each other.
- If you do specify a Leader, lines will not wrap in the TOC entries. Long lines will be truncated.
Specifies the line spacing of the TOC text. Default is 3.
Line spacing is specified as:
- 1 = single spacing
- 2 = double spacing
- and so on…
The default value is 3. Refer to the Leader note above for more information.
Note: If you specify 0, bookmarks are created, but no TOC text is applied to the TOC page.
Specifies the width of the column that holds the TOC page numbers. Default is 72 points (1 inch).
Column Width can be used to tighten or loosen up the space between the numbers and the leader. Make sure it is big enough to hold all the digits of the page numbers in the font size used.
Specifies whether the text for the TOC is grayscale or RGB color. If it is:
- Grayscale, the gray level is specified,
- RGB color, the Red, Green, and Blue levels are specified to create a color.
If the colorspace is Grayscale, Gray specifies the percentage of white:
- 0 would be black
- 50 would be medium gray
- 100 would be white
Red, Green, Blue
If the colorspace is RGB, red, green, and blue specify the levels of each color from 0-255, such that:
16 million colors are possible with this system. You can get help choosing RGB values from graphic design software or several internet sites (for example, www.visibone.com/colorlab).
Note: that Red = Green = Blue makes gray. You can duplicate any gray color in RGB with appropriate choice of equal values.
Click Set Color to choose a color.