2020.1

Table Of Contents
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
VOID MergeWith2 (STRING pdfFilename, LONG xnum, LONG ynum, LONG xoffset, LONG
yoffset, FLOAT scaleFactor)
pdfFilename
Name of the source PDF from which pages are taken.
xnum
Number of columns.
ynum
Number of rows.
xoffset
Horizontal space to put between the top left corner of each source page, in points.
yoffset
Vertical space to put between the top left corner of each source page, in points.
scaleFactor
Page 250