PDFKit.NET 2.0 Class Library (.NET 2.0)

Document Constructor (Stream, String)

Opens an existing password-protected document.

public Document(
   Stream stream,
   string password
);

Parameters

stream
The stream from which the document is read.
password
Password that is required to open this document.

Remarks

This method is optimized for speed, and will cache some data into memory if any is true:

If caching does not occur, the stream must be kept open until the (target) document is written.

If you want to have full control over the caching behaviour, please use the overload with the BinaryReader, see the remarks available by that constructor for detailed information.

See Also

Document Class | TallComponents.PDF Namespace | Document Constructor Overload List