PdfDiagnostic Class

A problem the reader found in a file, and how it read the file anyway (PdfDocument.Diagnostics).

public sealed class PdfDiagnostic

Properties

NameDescription
KindGets the kind of problem.
MessageGets the description of the problem and of what the reader did.
ObjectNumberGets the number of the object the problem is in, or null when it is not in an object.
OffsetGets the offset in the file where the problem is, or null when it has none.
SeverityGets how much the problem can change what is read.

Gets the kind of problem.

public PdfDiagnosticKind Kind { get; }

Property value

PdfDiagnosticKind

Gets the description of the problem and of what the reader did.

public string Message { get; }

Property value

string

ObjectNumber

PdfDiagnostic.cs

Gets the number of the object the problem is in, or null when it is not in an object.

public int? ObjectNumber { get; }

Property value

int?

Gets the offset in the file where the problem is, or null when it has none.

public long? Offset { get; }

Property value

long?

Gets how much the problem can change what is read.

public PdfDiagnosticSeverity Severity { get; }

Property value

PdfDiagnosticSeverity

Methods

NameDescription
ToString()Returns a string that represents the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.