2019.2

Table Of Contents
Return value
True if the file is password-protected, False otherwise.
MergeWith(pdfFilename)
Merges the pages of pdfFilename (the source) onto the pages of the current PDF (the
destination ). Each page of the source is overlaid transparently onto the corresponding
destination page, 1 on 1, 2 on 2, 3 on 3, etc. The source must have the same number of pages
than the destination and each pair of pages should have the same size. The resulting file is not
optimized.
This method is the same as calling: PDF.MergeWith2(pdfFilename, 1, 1, 0, 0, 1.0); (see
"MergeWith2(pdfFilename, xnum, ynum, xoffset, yoffset, scaleFactor)" below).
Syntax
VOID MergeWith (STRING pdfFilename)
pdfFilename
Name of the source PDF from which pages are taken to be overlaid on the pages of the
destination PDF.
MergeWith2(pdfFilename, xnum, ynum, xoffset, yoffset, scaleFactor)
Merges the pages of pdfFilename (the source) onto the pages of the current PDF (the
destination). Each page of the source is overlaid transparently onto a destination page in a grid
whose size is specified by xnum and ynum. The pages are laid from left to right and then from
top to bottom. The resulting file is not optimized.
In PlanetPress Suite, this method is useful for n-Up imposition. For example, (xnum=1, ynum=1,
scaleFactor=1.0) means that each source is overlaid on the corresponding destination page, 1
on 1, 2 on 2, 3 on 3, etc. Having (xnum=3, ynum=2) with xoffset, yoffset and scaleFactor set
accordingly results in a 3x2 mosaic looking like this:
1 2 3
4 5 6
There is no separator between the source pages on the destination page. A space can be
obtained by using an offset bigger than the size of the scaled source page.
Syntax
Page 259