PdfTextEncodingDiagnostic
OfficeIMO.Pdf
Describes text that cannot be written through the current generated PDF text encoding path.
Inheritance
- object
- PdfTextEncodingDiagnostic
Usage
Explore 7 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Property PdfBytesResult.TextEncodingDiagnostics
- Method PdfDocument.AnalyzeTextEncoding
- Property PdfSaveResult.TextEncodingDiagnostics
- Method PdfTextEncodingDiagnostic.WithFieldName
- Method PdfTextEncodingDiagnostic.WithPageNumber
- Method PdfTextEncodingDiagnostic.WithTableCell
- Property PdfTextFallbackPlan.Diagnostics
Constructors
public PdfTextEncodingDiagnostic(string source, int index, string codePoint, string text, bool isControlCharacter) #Creates a text encoding diagnostic.
Parameters
- source string
- Caller-provided source label such as a block, field, sheet, slide, or converter area.
- index int
- UTF-16 index of the unsupported character in the inspected text.
- codePoint string
- Unicode code point formatted as U+XXXX or U+XXXXX.
- text string
- Unsupported character or surrogate pair text. Control characters are represented as an empty string.
- isControlCharacter bool
- Whether the unsupported character is a control character.
public PdfTextEncodingDiagnostic(string source, int index, string codePoint, string text, bool isControlCharacter, string encoding, string remediation) #Creates a text encoding diagnostic with a custom encoding or font coverage description.
Parameters
- source string
- Caller-provided source label such as a block, field, sheet, slide, or converter area.
- index int
- UTF-16 index of the unsupported character in the inspected text.
- codePoint string
- Unicode code point formatted as U+XXXX or U+XXXXX.
- text string
- Unsupported character or surrogate pair text. Control characters are represented as an empty string.
- isControlCharacter bool
- Whether the unsupported character is a control character.
- encoding string
- Encoding or font coverage description that rejected the character.
- remediation string
- Optional remediation guidance for the caller.
public PdfTextEncodingDiagnostic(string source, int index, string codePoint, string text, bool isControlCharacter, string encoding, string remediation, string location) #Creates a text encoding diagnostic with a custom encoding or font coverage description and document location.
Parameters
- source string
- Caller-provided source label such as a block, field, sheet, slide, or converter area.
- index int
- UTF-16 index of the unsupported character in the inspected text.
- codePoint string
- Unicode code point formatted as U+XXXX or U+XXXXX.
- text string
- Unsupported character or surrogate pair text. Control characters are represented as an empty string.
- isControlCharacter bool
- Whether the unsupported character is a control character.
- encoding string
- Encoding or font coverage description that rejected the character.
- remediation string
- Optional remediation guidance for the caller.
- location string
- Optional generated document location such as a block, table cell, or canvas item path.
public PdfTextEncodingDiagnostic(string source, int index, string codePoint, string text, bool isControlCharacter, string encoding, string remediation, string location, int? runIndex) #Creates a text encoding diagnostic with a custom encoding or font coverage description, document location, and rich-text run index.
Parameters
- source string
- Caller-provided source label such as a block, field, sheet, slide, or converter area.
- index int
- UTF-16 index of the unsupported character in the inspected text.
- codePoint string
- Unicode code point formatted as U+XXXX or U+XXXXX.
- text string
- Unsupported character or surrogate pair text. Control characters are represented as an empty string.
- isControlCharacter bool
- Whether the unsupported character is a control character.
- encoding string
- Encoding or font coverage description that rejected the character.
- remediation string
- Optional remediation guidance for the caller.
- location string
- Optional generated document location such as a block, table cell, or canvas item path.
- runIndex int?
- Optional zero-based rich text run index inside the generated document location.
public PdfTextEncodingDiagnostic(string source, int index, string codePoint, string text, bool isControlCharacter, string encoding, string remediation, string location, int? runIndex, int? pageNumber) #Creates a text encoding diagnostic with a custom encoding or font coverage description, document location, rich-text run index, and generated page number.
Parameters
- source string
- Caller-provided source label such as a block, field, sheet, slide, or converter area.
- index int
- UTF-16 index of the unsupported character in the inspected text.
- codePoint string
- Unicode code point formatted as U+XXXX or U+XXXXX.
- text string
- Unsupported character or surrogate pair text. Control characters are represented as an empty string.
- isControlCharacter bool
- Whether the unsupported character is a control character.
- encoding string
- Encoding or font coverage description that rejected the character.
- remediation string
- Optional remediation guidance for the caller.
- location string
- Optional generated document location such as a block, table cell, or canvas item path.
- runIndex int?
- Optional zero-based rich text run index inside the generated document location.
- pageNumber int?
- Optional one-based generated page number for page-scoped diagnostics.
public PdfTextEncodingDiagnostic(string source, int index, string codePoint, string text, bool isControlCharacter, string encoding, string remediation, string location, int? runIndex, int? pageNumber, int? tableRowIndex, int? tableColumnIndex) #Creates a text encoding diagnostic with generated page and table-cell coordinates.
Parameters
- source string
- Caller-provided source label such as a block, field, sheet, slide, or converter area.
- index int
- UTF-16 index of the unsupported character in the inspected text.
- codePoint string
- Unicode code point formatted as U+XXXX or U+XXXXX.
- text string
- Unsupported character or surrogate pair text. Control characters are represented as an empty string.
- isControlCharacter bool
- Whether the unsupported character is a control character.
- encoding string
- Encoding or font coverage description that rejected the character.
- remediation string
- Optional remediation guidance for the caller.
- location string
- Optional generated document location such as a block, table cell, or canvas item path.
- runIndex int?
- Optional zero-based rich text run index inside the generated document location.
- pageNumber int?
- Optional one-based generated page number for page-scoped diagnostics.
- tableRowIndex int?
- Optional zero-based table row index for table-cell diagnostics.
- tableColumnIndex int?
- Optional zero-based table column index for table-cell diagnostics.
public PdfTextEncodingDiagnostic(string source, int index, string codePoint, string text, bool isControlCharacter, string encoding, string remediation, string location, int? runIndex, int? pageNumber, int? tableRowIndex, int? tableColumnIndex, string? fieldName) #Creates a text encoding diagnostic with generated page, table-cell coordinates, and form field name.
Parameters
- source string
- Caller-provided source label such as a block, field, sheet, slide, or converter area.
- index int
- UTF-16 index of the unsupported character in the inspected text.
- codePoint string
- Unicode code point formatted as U+XXXX or U+XXXXX.
- text string
- Unsupported character or surrogate pair text. Control characters are represented as an empty string.
- isControlCharacter bool
- Whether the unsupported character is a control character.
- encoding string
- Encoding or font coverage description that rejected the character.
- remediation string
- Optional remediation guidance for the caller.
- location string
- Optional generated document location such as a block, table cell, or canvas item path.
- runIndex int?
- Optional zero-based rich text run index inside the generated document location.
- pageNumber int?
- Optional one-based generated page number for page-scoped diagnostics.
- tableRowIndex int?
- Optional zero-based table row index for table-cell diagnostics.
- tableColumnIndex int?
- Optional zero-based table column index for table-cell diagnostics.
- fieldName string?
- Optional generated AcroForm field name for form-field diagnostics.
Methods
public PdfConversionWarning ToConversionWarning(string converter = "OfficeIMO.Pdf") #Converts this text diagnostic to the shared conversion warning shape used by PDF adapters.
Parameters
- converter string = "OfficeIMO.Pdf"
- Converter or adapter name to place on the warning.
Returns
PdfConversionWarning A shared conversion warning carrying this diagnostic and stable details.public PdfTextEncodingDiagnostic WithFieldName(string fieldName) #Returns a copy of this diagnostic annotated with a generated AcroForm field name.
Parameters
- fieldName string
- Generated field name.
Returns
PdfTextEncodingDiagnostic A diagnostic carrying the same text details and the supplied field name.public PdfTextEncodingDiagnostic WithPageNumber(int pageNumber) #Returns a copy of this diagnostic annotated with a one-based generated page number.
Parameters
- pageNumber int
- One-based generated page number.
Returns
PdfTextEncodingDiagnostic A diagnostic carrying the same text details and the supplied page number.public PdfTextEncodingDiagnostic WithTableCell(int rowIndex, int columnIndex) #Returns a copy of this diagnostic annotated with zero-based table cell coordinates.
Parameters
- rowIndex int
- Zero-based table row index.
- columnIndex int
- Zero-based table column index.
Returns
PdfTextEncodingDiagnostic A diagnostic carrying the same text details and the supplied table cell coordinates.Inherited Methods
Properties
public string Source { get; } #Caller-provided source label such as a block, field, sheet, slide, or converter area.
public int Index { get; } #UTF-16 index of the unsupported character in the inspected text.
public string CodePoint { get; } #Unicode code point formatted as U+XXXX or U+XXXXX.
public string Text { get; } #Unsupported character or surrogate pair text. Control characters are represented as an empty string.
public bool IsControlCharacter { get; } #Whether the unsupported character is a control character.
public string Encoding { get; } #Encoding or font coverage description that rejected the character.
public string Remediation { get; } #Optional remediation guidance for the caller.
public string Location { get; } #Optional generated document location such as a block, table cell, or canvas item path.
public int? RunIndex { get; } #Optional zero-based rich text run index inside the generated document location.
public int? PageNumber { get; } #Optional one-based generated page number for page-scoped diagnostics.
public int? TableRowIndex { get; } #Optional zero-based table row index for table-cell diagnostics.
public int? TableColumnIndex { get; } #Optional zero-based table column index for table-cell diagnostics.
public string FieldName { get; } #Optional generated AcroForm field name for form-field diagnostics.
public string Code { get; } #Stable warning code suitable for shared conversion reports.