PdfDocumentLoad(Stream, PdfLoadOptions) Method |
Loads a PDF document from the specified stream and with the specified options.
Namespace: SautinSoft.PdfAssembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.10.22
Syntaxpublic static PdfDocument Load(
Stream stream,
PdfLoadOptions options
)
Public Shared Function Load (
stream As Stream,
options As PdfLoadOptions
) As PdfDocument
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
PdfDocumentA loaded PDF document.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | stream is null or options is null. |
| ArgumentException | stream is not readable. |
| InvalidPdfPasswordException | PDF file is encrypted and the Password is invalid. |
See Also