PdfDocument Constructor (Byte, String, String)

Opens an existing PDF document for editing.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.6.0.0 (2020.6.0.0)
Syntax
public PdfDocument(
	byte[] PdfData,
	string password = null,
	string ownerPassword = null
)

Parameters

PdfData
Type: SystemByte
The PDF file data as byte array.
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.
See Also
Download DLL or Install with Nuget