2022.2

Table Of Contents
"GetInfos()" on page197
"IPdfInfos" on
page216
Retrieves the contents of the Document Information Dictionary from the PDF.
"GetVersion(*major, *minor)" on
page197
Returns the version of the underlying PDF file format. For example, for PDF 1.7, 1 is
returned in major and 7 is returned in minor.
Note that this method is not available in scripts.
"GetXMP()" on page197 STRING Retrieves the XMP attachment embedded in the PDF.
"GetXYML()" on page197 STRING Retrieves the entire extractable text from the PDF in XYML format.
"IsProtected(filename)" on page198 BOOL
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.
"MergeWith(pdfFilename)" on
page198
Merges the pages of pdfFilename (the source) with the pages of the current PDF (the des-
tination).
"MergeWith2(pdfFilename, xnum,
ynum, xoffset, yoffset, scaleFactor)"
on page198
Overlays each page of pdfFilename (the source) onto pages of the current PDF (the des-
tination) 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.
"Open(filename, doRepair)" on
page199
Opens an existing PDF, optionally repairing it.
"OpenEx(filename, password, doRe-
pair)" on page200
Opens an existing, password-protected PDF, optionally repairing it.
"Pages()" on page200
IPages (see
"Pages col-
lection object"
on page203)
Provides access to the Pages collection of the PDF.
"Print(printername)" on page200 Prints a range of PDF pages to the specified Windows printer with default options.
"PrintEx(printername, *Pd-
fPrintParams)" on page201
Prints a range of PDF pages to the specified Windows printer with specific printer options
stored in an "IPdfPrintParams" on page217 structure.
"Save()" on page201
Saves changes to the PDF file. The version of the PDF file format is the highest possible for
a newly created file and is unchanged when saving an existing file, unless the SetVersion
method was called in which case the file format used will be the one set by SetVersion.
"SetInfos(Infos)" on page202 Sets the contents for the PDF's Document Information Dictionary.
"setTolerances(tolerableDeltaWidth,
tolerableDeltaHeight, tol-
erableDeltaFontHeight, tol-
erableGap)" on page202
Sets the floating point values for the tolerable factors.
"SetVersion (major, minor)" on
page203
Sets the version of the underlying PDF file format. This is applied when the file is saved.
"SetXMP(xmpPacket)" on page203 Sets the XMP attachment by replacing the existing one with xmpPacket.
IPDF methods reference
Close()
Closes the PDF file. If changes were made but not saved, they are silently lost. All IPage objects must
be released before closing a PDF.
Syntax
Page 195