Click or drag to resize

PdfDocument Constructor (Stream, 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(
	Stream PdfDataStream,
	string password = null,
	string ownerPassword = null
)

Parameters

PdfDataStream
Type: System.IOStream
The PDF file data as a Stream.
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