Click or drag to resize
Pdftools logo

DocumentOpen Method

Open an image document

Documents opened with this method are read-only and cannot be modified.

Namespace: PdfTools.Image
Assembly: PdfTools (in PdfTools.dll) Version: 1.5.0+84bd4d36da7e2449ee09fddee89e23a99b6ffcca
Syntax
C#
public static Document Open(
	Stream stream
)

Parameters

stream  Stream
The stream from which the image is read.

Return Value

Document
The newly created document instance
Exceptions
ExceptionCondition
LicenseExceptionThe license check has failed.
UnknownFormatExceptionThe document has a not recognized image format.
CorruptExceptionThe document is corrupt or not an image.
ArgumentNullExceptionif stream is .
See Also