2020.2

Table Of Contents
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251
Sets the contents for the PDF's Document
Information Dictionary.
"setTolerances
(tolerableDeltaWidth,
tolerableDeltaHeight,
tolerableDeltaFontHeight,
tolerableGap)" on
page252
Sets the floating point values for the tolerable
factors.
"SetVersion (major,
minor)" on page252
Sets the version of the underlying PDF file
format. This is applied when the file is saved.
"SetXMP(xmpPacket)" on
page253
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
VOID Close ()
Note: Before using Close() in Javascript, you should call the CollectGarbage() global method to
ensure all references to pages are properly discarded. This additional statement is not required
with other languages. For instance:
var objPDF = Watch.GetPDFEditObject();
objPDF.Open(Watch.GetJobFileName(), false);
var objPages = objPDF.Pages();
var objPage = null;
for(var i=0; i<objPages.Count(); i++) {
objPage = objPages.Item(i);
Page 244