Document Constructor (Stream, String, EngineSettings)

Apitron PDF Rasterizer help
Apitron.PDF.Rasterizer library for .NET
Initializes a new instance of the Document class.

Namespace:  Apitron.PDF.Rasterizer
Assembly:  Apitron.PDF.Rasterizer (in Apitron.PDF.Rasterizer.dll) Version: 3.0.154.0 (3.0.154.0)
Syntax

public Document(
	Stream stream,
	string password,
	EngineSettings engineSettings = null
)

Parameters

stream
Type: System.IOStream
The stream to read PDF data from.
password
Type: SystemString
The password for the document, setting it to null is equal to setting it to an empty string.
engineSettings (Optional)
Type: Apitron.PDF.Rasterizer.ConfigurationEngineSettings
Engine settings that will be used during document processing.
Exceptions

ExceptionCondition
ArgumentNullExceptionIf given stream is null.
DocumentLoadExceptionIf document can't be loaded because it has invalid structure or password is not valid for the document.
See Also

Reference