Table of Contents

Class PdfException

Namespace
Syncfusion.Pdf
Assembly
Syncfusion.Pdf.Portable.dll

The class represents general PDF exceptions. The PdfException inherited from the Exception class

public class PdfException : Exception, ISerializable
Inheritance
PdfException
Implements
Derived
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)

Constructors

PdfException()

Initializes object by default error message.

public PdfException()

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)
See Also

PdfException(string)

Initializes object by specified error message.

public PdfException(string message)

Parameters

message string

User defined error message.

See Also

PdfException(string, Exception)

Initializes object by specified error message and inner exception object.

public PdfException(string message, Exception innerException)

Parameters

message string

User defined error message.

innerException Exception

The inner exception.

See Also

See Also