Click or drag to resize

PdfDocumentLoad(Stream, PdfLoadOptions) Method

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

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

Parameters

stream  Stream
The stream from which to load a PDF document.
options  PdfLoadOptions
The options used for loading a PdfDocument from a PDF file.

Return Value

PdfDocument
A loaded PDF document.
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is null or options is null.
ArgumentExceptionstream is not readable.
InvalidPdfPasswordExceptionPDF file is encrypted and the Password is invalid.
See Also