2021.1

Table Of Contents
IsProtected(filename)
Returns True if the PDF file is password-protected. When a file is password-protected, the
OpenEx() method must be used instead of the Open() method. See also: "OpenEx(filename,
password, doRepair)" on page253.
Syntax
BOOL IsProtected (STRING filename)
filename
Name of the file to check for password-protection.
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.
Page 251