InvalidPdfContentException Class

Thrown when a document is malformed, inconsistent or truncated beyond what the reader can recover.

public sealed class InvalidPdfContentException : PdfException
Inheritance
PdfException InvalidPdfContentException

Constructors

NameDescription
InvalidPdfContentException()Initializes a new instance of the InvalidPdfContentException class.
InvalidPdfContentException(string?)Initializes a new instance of the InvalidPdfContentException class with a message.
InvalidPdfContentException(string?, Exception?)Initializes a new instance of the InvalidPdfContentException class with a message and the exception that caused it.

InvalidPdfContentException overloads

InvalidPdfContentException()

InvalidPdfContentException.cs

Initializes a new instance of the InvalidPdfContentException class.

public InvalidPdfContentException()

InvalidPdfContentException(string?)

InvalidPdfContentException.cs

Initializes a new instance of the InvalidPdfContentException class with a message.

public InvalidPdfContentException(string? message)
Parameters
message string?
The message that describes the error.

InvalidPdfContentException(string?, Exception?)

InvalidPdfContentException.cs

Initializes a new instance of the InvalidPdfContentException class with a message and the exception that caused it.

public InvalidPdfContentException(string? message, Exception? innerException)
Parameters
message string?
The message that describes the error.
innerException Exception?
The exception that caused the error.