Click or drag to resize

Document Constructor (BinaryReader)

Opens an existing document using a BinaryReader.

Namespace:  Atalasoft.Imaging.Codec.Pdf
Assembly:  Atalasoft.dotImage.PdfReader (in Atalasoft.dotImage.PdfReader.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public Document(
	BinaryReader reader
)

Parameters

reader
Type: System.IOBinaryReader
The reader from which the document is read.
Examples
C#
using ( FileStream file = new FileStream( path, FileMode.Open, FileAccess.Read ) )
{
   byte[] buffer = new byte[ file.Length ];
   file.Read( buffer, 0, buffer.Length );
   document = <b>new Document( new BinaryReader( new MemoryStream( buffer ) ) )</b>;
}
See Also