Document Index

<< Click to Display Table of Contents >>

Navigation:  PDF-XChange Editor Plus User Manual > Appendix > Macros >

Document Index


 

Editor-Icon Document Index

 


 

The Document Index macro uses the name DocNumber and displays the index value of a file within a group of input/output files. It is useful when adding/extracting several files to/from a PDF document.

 

The syntax for this macro is %[DocNumber: <Parameter>]

 

The parameter indicates the minimum amount of digits for the page number and must be a positive integer. For example, if the <parameter> is entered as "4" the indexes will be "0001, 0002, 0003" etc.

 

This macro can be used in the Image Labels option of the Images to PDF dialog box, which is located here. When it is open it appears as below:

 

11.imagelabels

Figure 1. Images to PDF Options Dialog Box

 

Select the Use special text label for each image box to enable the use of macros for this option.

Use the Back color, Paragraph and Font buttons to set these parameters of the label.

Select the remaining two boxes as desired.

 

For example:

 

The macro "%[DocNumber: <4>]" is entered in the text box.

When the new document is created, the labels "0001, 0002, 0003" etc will appear according to the parameters specified in the dialog box displayed in (figure 1).