Zum Hauptinhalt springen

AppendPDFFilesRepaginate

Structure

AppendPDFFilesRepaginate(sFileName1, sFileName2, sNewFileName, sPageNoFormat : String)

Type

Function

Description

This procedure will take 2 pdf files (already created) and append them into a single pdf file. In addition this procedure will change any 'Page # of #' text based on the sPageNoFormat - to account for the new full number of pages.

Parameters: 4

sFileName1 = the name of the first pdf file

sFileName2 = the name of the first pdf file

sNewFileName = the name of the appended pdf file

sPageNoFormat = the format of page #'s in the document. This format must be consistently used in the document, and must be used in text-based controls (not images). There are 2 mail-merge aliases you can use in this format, [Page] for current page and [Total] for total number of pages. An example would be: 'Page [Page] of [Total]'

Return Value

Integer - 1 = Success, 0 = Failure |