Use Prologue.ps and Epilogue.ps
Sends a prologue and epilogue file with each job. Prologue.ps files can be used to add custom PostScript code that you want to have executed at the beginning of every PostScript job being converted. This file can be used for many purposes, including adding a cover page to a job or defining PostScript procedures for gathering statistics while a PostScript job is executing. Epilogue.ps files can be used to add custom PostScript code that you want to have executed at the end of every PostScript job being converted. This file can be used for many purposes, including running PostScript procedures for summarizing and printing job statistics collected during conversion.
Sample Prologue.ps and Epilogue.ps files are located in Documents and Settings\All Users\Shared Documents\Adobe PDF 7.0\Data (Windows), and /Library/Application Support/Adobe PDF/Data (Mac OS).
Note: Distiller processes prologue and epilogue files only if both files are present and located properly. The two files must be used together. If the prologue and epilogue files are at the same level as the In and Out folders of a watched folder, they are used instead of the ones in the Distiller folder.