Please enable JavaScript to view this site.

Navigation: Developer Information > Using the Windows registry

Appending or Prepending to an existing PDF

Scroll Prev Top Next More

You can prepend or append and existing file with the newly created file by creating a string value in the registry at any of the standard registry locations.

 

Setting

Description

PDFAppendFile

Appends the specified PDF to the newly created PDF for one document. The setting is deleted after the append.

PDFPrependFile

Prepends the specified PDF to the newly created PDF for one document. The setting is deleted after the prepend.

PDFDefaultAppendFile

Always appends the specified PDF to the newly created PDF.

PDFDefaultPrependFile

Always prepends the specified PDF to the newly created PDF.

 

You can specify both a "PDFPrependFile" and a "PDFAppendFile" at the same time, and both options are only used if the output file name was specified by using "PDFFileName", "PDFPostFileName", or "PDFDefaultFileName".

 

For example, if you have an existing PDF file named "file1.pdf" and you would like to create a new PDF file named "file2.pdf" with the contents of "file1.pdf" at the beginning of the new file, you would set "PDFPrependFile" to file1.pdf and "PDFDefaultFileName" to "file2.pdf". Alternatively, if you wanted to the contents of "file1.pdf" to be at the end of the new file, you would set "PDFAppendFile" to "file1.pdf" and "PDFDefaultFileName" to "file2.pdf".

 

By default, the "PDFPrependFile" and "PDFAppendFile" entries are removed from the registry after each PDF file is created and you must add the values each time you print. If you want to prevent the values from being removed after each document, you can use "PDFDefaultAppendFile", "PDFDefaultPrependFile", or create a DWord value named "persistent" at one of the standard registry locations.