Document Constructor (Stream, AuthEventHandler, 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,
	AuthEventHandler authRequestHandler,
	EngineSettings engineSettings = null
)

Parameters

stream
Type: System.IOStream
The stream to read PDF data from.
authRequestHandler
Type: Apitron.PDF.Rasterizer.SecurityAuthEventHandler
The authentication request handler.
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