Click or drag to resize

PdfDocumentLoad(String, PdfLoadOptions) Method

Loads a PDF document from a file with the specified path and with the specified options.

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

Parameters

path  String
The path to a file 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
ArgumentNullExceptionpath is null or options is null.
InvalidPdfPasswordExceptionPDF file is encrypted and the Password is invalid.
See Also