PDFUtil Object
Description
Manages the PDF Testing Utility, which enables OpenText Functional Testing to interact with PDF documents.
Associated Methods
Open | Opens the PDF document in the PDF Testing Utility. |
Open Method
Description
Opens the PDF document in the PDF Testing Utility.
Syntax
PDFUtil.Open fullPDFPath, encodedPDFPassword
Argument | Type | Description |
---|---|---|
fullPDFPath | String | The path to the PDF file to open. |
encodedPDFPassword | String | Optional. The password required to open the PDF file, in an encoded string. To encode the password before entering it here, use the Password Encoder utility (available from the Windows Start menu). Note: This enables you to obscure password visibility, but it is not intended to be a secure way to protect password information. |
IMPORTANT
The PDF Testing Utility can only open one document at a time. If you open a document while another is open, the open one is automatically closed and any changes are discarded. Make sure to first save any changes you do not want to lose in the open file.
Return type
None
The following example, opens the Demo PDF file, using an encoded password:
PDFUtil.Open "C:\Users\Administrator\Desktop\PDF\Demo.pdf", "610b523994abf628e6ca2cf71ed5932e558247f1320709471870"
See also: