2020.2

Table Of Contents
PDF object
The PDF object implements the IPDF interface. This interface defines methods to open, close
and save files, as well as to access meta information such as the XMP attachment. The
interface also implements a Pages collection object to access the list of pages in the PDF.
To instantiate the PDF object, call the Watch.GetPDFEditObject method in Workflow's scripting
environment.
Javascript implementation: var myPDF = Watch.GetPDFEditObject();
VBScript implementation: set myPDF = Watch.GetPDFEditObject
IPDF methods
Name Return
type
Description
"Close()" on page244 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.
"Create(filename)" on
page245
Creates a new empty PDF file.
"GetInfos()" on page246 "IPdfInfos"
on
page269
Retrieves the contents of the Document
Information Dictionary from the PDF.
"GetVersion(*major,
*minor)" on page246
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 page246 STRING Retrieves the XMP attachment embedded in the
PDF.
"GetXYML()" on
page246
STRING Retrieves the entire extractable text from the
PDF in XYML format.
Page 242