Click or drag to resize

PdfDocumentLoad(Stream) Method

Loads a PDF document from the specified stream and with the Default options.

Namespace: SautinSoft.Pdf
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.8.8
Syntax
public static PdfDocument Load(
	Stream stream
)

Parameters

stream  Stream
The stream from which to load a PDF document.

Return Value

PdfDocument
A loaded PDF document.
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is null.
ArgumentExceptionstream is not readable.
InvalidPdfPasswordExceptionPDF file is encrypted and the password is required to load a PDF document. Use Load(Stream, PdfLoadOptions) method and provide a valid Password.
See Also