2021.2

Table Of Contents
VOID Open (STRING filename, BOOL doRepair)
filename
Name of the file to open.
doRepair
Boolean. If true, the software automatically attempts to repair the file if it is found to be
damaged or corrupt. Otherwise, the operation fails if the file is damaged.
OpenEx(filename, password, doRepair)
Opens an existing, password-protected PDF, optionally repairing it. See also: "IsProtected
(filename)" on page251.
Syntax
VOID OpenEx (STRING filename, STRING password, BOOL doRepair)
filename
Name of the file to open.
password
Password to open the file.
doRepair
Boolean. If true, the software automatically attempts to repair the file if it is found to be
damaged or corrupt. Otherwise, the operation fails if the file is damaged.
Pages()
Provides access to the Pages collection of the PDF.
Syntax
IPages Pages ()
Return value
An IPages collection object. Each page in the zero-based collection can be accessed through
the IPages.Item() method. Note that since Item() is the collection's default method, it can be
omitted altogether (e.g. IPages(0) is the same as IPages.Item(0)).
Page 253