This script uses the REPEAT attribute to enable each page from a named PDF file to be INCLUDEd one PAGE at a time, followed by a "Compliments" slip on another PAGE.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<IDF>

<PAGE REPEAT="YES">
<INCLUDE FILENAME="Brochure.pdf" PAGE="NEXT"/>
</PAGE>

<PAGE>
<TEXT ALIGN="CENTRE,CENTRE" FONTSIZE="16 pt" STYLE="1">
With Compliments
</TEXT>
</PAGE>

</IDF>

Command-line tips

Omit the FILENAME from the INCLUDE statement above:
<INCLUDE PAGE="NEXT"/>

and specify the file on the command-line or Run box instead:

EscapeE c:\CustomerRecords\BrochureGarden.PDF /USING MailBrochure.idf

where MailBrochure.idf is the name of this sample IDF file and BrochureGarden.PDF is the name of the file INCLUDEd in the document.

This frees you to customize the document "on the fly" – there is no need to open and edit the IDF file each time you need to output a new variant of the document.

See also Command-line sample script.