PeachDrawing.PDF.PdfOperation
PdfOperation.LoadFile Method
| Overloads | |
|---|---|
| LoadFile(string) | Opens a PDF that needs no password. |
| LoadFile(string, string) | Opens a PDF protected with a password. |
PdfOperation.LoadFile(string) Method
Opens a PDF that needs no password.
public static PeachDrawing.PDF.PdfOperation LoadFile(string filePath);
Parameters
filePath System.String
the file to open
Returns
PdfOperation
an operation whose pages are those of the file
Exceptions
PdfPasswordException
the file needs a password
PdfOperation.LoadFile(string, string) Method
Opens a PDF protected with a password.
public static PeachDrawing.PDF.PdfOperation LoadFile(string filePath, string? password);
Parameters
filePath System.String
the file to open
password System.String
the user password (for an AES-256 file, the owner password also works)
Returns
PdfOperation
an operation whose pages are those of the file
Exceptions
PdfPasswordException
the password is missing or wrong