PdfDocument Constructor (Stream, String)

Note: This API is now obsolete.

Opens an existing password-protected PDF document.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
[ObsoleteAttribute("This constructor is obsolete and will be removed in the next version of the library. Please use one of the constructors with parameter of PdfDecryptionHandler type instead.")]
public PdfDocument(
	Stream stream,
	string password
)
VB
<ObsoleteAttribute("This constructor is obsolete and will be removed in the next version of the library. Please use one of the constructors with parameter of PdfDecryptionHandler type instead.")>
Public Sub New ( 
	stream As Stream,
	password As String
)

Parameters

stream
Type: System.IO.Stream
The stream from which the PDF document to be read.
password
Type: System.String
The user or owner password that unlocks existing PDF data.

Remarks

The stream must be a stream that supports reading and seeking. Otherwise, the constructor throws an exception of PdfException type.

See Also