PdfDocument Constructor (String, String, String)

Opens an existing PDF document for editing.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.3.2.0 (2020.3.2.0)
Syntax
public PdfDocument(
	string PdfFilePath,
	string password = null,
	string ownerPassword = null
)

Parameters

PdfFilePath
Type: SystemString
The PDF file path.
password (Optional)
Type: SystemString
Optional user password if the PDF document is encrypted.
ownerPassword (Optional)
Type: SystemString
Optional password if the PDF document is protected by owner (printing, modifying restrictions etc..).
Exceptions
ExceptionCondition
IOExceptionException thrown if can not be opened.
ArgumentExceptionPdfFilePath is null, empty, or consists only of white-space characters.
See Also