2022.2

Table Of Contents
Structures
Syntax
STRUCT_NAME {
FIELD_TYPE fieldName1[,
FIELD_TYPE fieldName2[,
...]]
}
Examples
IPDFRect {
LONG left,
LONG top,
LONG right,
LONG bottom
}
JavaScript implementation:
var pdfRect = myPDF.Pages(0).Size();
var pageWidth = pdfRect.right - pdfRect.left;
VBScript implementation:
set pdfRect = myPDF.Pages(0).Size
pageWidth = pdfRect.right - pdfRect.left
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 imple-
ments 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 envir-
onment.
Javascript implementation: var myPDF = Watch.GetPDFEditObject();
VBScript implementation: set myPDF = Watch.GetPDFEditObject
IPDF methods
Name Return type Description
"Close()" on the facing page
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 page196 Creates a new empty PDF file.
Page 194