Class PdfInvalidPasswordException
- Namespace
- Syncfusion.Pdf
- Assembly
- Syncfusion.Pdf.Portable.dll
Indicates that the provided user or owner password is not valid.
public class PdfInvalidPasswordException : PdfException, ISerializable
- Inheritance
-
PdfInvalidPasswordException
- Implements
- Inherited Members
Examples
PdfLoadedDocument document;
try
{
//Load an existing document.
document = new PdfLoadedDocument("input.pdf");
}
catch (Syncfusion.Pdf.PdfException)
{
//Load an existing document.
document = new PdfLoadedDocument("input.pdf", true);
}
document.Save("Output.pdf");
document.Close(true);
'Load an existing document.
Dim document As PdfLoadedDocument
Try
document = New PdfLoadedDocument("input.pdf")
Catch exception As Syncfusion.Pdf.PdfException
document = New PdfLoadedDocument("input.pdf", True)
End Try
'Save and Close the document.
document.Save("Output.pdf")
document.Close(True)