Click or drag to resize

PdfDocument Constructor (String, String, String, RepairOptions)

Note: This API is now obsolete.

Initializes a new instance of the PdfDocument class, using the file specified by the supplied path and decodes it with the supplied passwords.

Namespace:  Atalasoft.PdfDoc
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
[ObsoleteAttribute("This constructor is obsolete. Use PdfDocument(string path, SecureString userPassword, SecureString ownerPassword, RepairOptions repairOptions) instead.", 
	false)]
public PdfDocument(
	string userPassword,
	string ownerPassword,
	string path,
	RepairOptions repairOptions
)

Parameters

userPassword
Type: SystemString
The user password to use for this document. This parameter may be null.
ownerPassword
Type: SystemString
The owner password to use for this document. This parameter may be null.
path
Type: SystemString
A non-null path to the PDF document to be opened.
repairOptions
Type: Atalasoft.PdfDoc.RepairRepairOptions
An object that specifies features for handling PDF document repair. This value may be null.
Exceptions
ExceptionCondition
IncorrectPasswordException If the password is incorrect or cannot be verified, the constructor will throw a IncorrectPasswordException.
See Also