Document Constructor (Stream, String)
Opens an existing password-protected document.

Namespace:  TallComponents.PDF.Rasterizer
Assembly:  TallComponents.PDF.Rasterizer (in TallComponents.PDF.Rasterizer.dll) Version: 3.0.147.0
Syntax
public Document(
	Stream stream,
	string password
)

Parameters

stream
Type: System.IOStream
The stream from which the document is read.
password
Type: SystemString
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:

  • the stream does not provide random access (!stream.CanSeek);
  • the stream is read from a file (stream is FileStream).
If caching does not occur, the stream must be kept open during the lifetime of the document.

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