Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfTextEncodingDiagnostic

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

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.

Constructors

PdfTextEncodingDiagnostic 7 overloads
public PdfTextEncodingDiagnostic(string source, int index, string codePoint, string text, bool isControlCharacter) #

Creates a text encoding diagnostic.

Parameters

source string required
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index int required
UTF-16 index of the unsupported character in the inspected text.
codePoint string required
Unicode code point formatted as U+XXXX or U+XXXXX.
text string required
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter bool required
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 required
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index int required
UTF-16 index of the unsupported character in the inspected text.
codePoint string required
Unicode code point formatted as U+XXXX or U+XXXXX.
text string required
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter bool required
Whether the unsupported character is a control character.
encoding string required
Encoding or font coverage description that rejected the character.
remediation string required
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 required
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index int required
UTF-16 index of the unsupported character in the inspected text.
codePoint string required
Unicode code point formatted as U+XXXX or U+XXXXX.
text string required
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter bool required
Whether the unsupported character is a control character.
encoding string required
Encoding or font coverage description that rejected the character.
remediation string required
Optional remediation guidance for the caller.
location string required
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 required
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index int required
UTF-16 index of the unsupported character in the inspected text.
codePoint string required
Unicode code point formatted as U+XXXX or U+XXXXX.
text string required
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter bool required
Whether the unsupported character is a control character.
encoding string required
Encoding or font coverage description that rejected the character.
remediation string required
Optional remediation guidance for the caller.
location string required
Optional generated document location such as a block, table cell, or canvas item path.
runIndex int? required
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 required
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index int required
UTF-16 index of the unsupported character in the inspected text.
codePoint string required
Unicode code point formatted as U+XXXX or U+XXXXX.
text string required
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter bool required
Whether the unsupported character is a control character.
encoding string required
Encoding or font coverage description that rejected the character.
remediation string required
Optional remediation guidance for the caller.
location string required
Optional generated document location such as a block, table cell, or canvas item path.
runIndex int? required
Optional zero-based rich text run index inside the generated document location.
pageNumber int? required
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 required
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index int required
UTF-16 index of the unsupported character in the inspected text.
codePoint string required
Unicode code point formatted as U+XXXX or U+XXXXX.
text string required
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter bool required
Whether the unsupported character is a control character.
encoding string required
Encoding or font coverage description that rejected the character.
remediation string required
Optional remediation guidance for the caller.
location string required
Optional generated document location such as a block, table cell, or canvas item path.
runIndex int? required
Optional zero-based rich text run index inside the generated document location.
pageNumber int? required
Optional one-based generated page number for page-scoped diagnostics.
tableRowIndex int? required
Optional zero-based table row index for table-cell diagnostics.
tableColumnIndex int? required
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 required
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index int required
UTF-16 index of the unsupported character in the inspected text.
codePoint string required
Unicode code point formatted as U+XXXX or U+XXXXX.
text string required
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter bool required
Whether the unsupported character is a control character.
encoding string required
Encoding or font coverage description that rejected the character.
remediation string required
Optional remediation guidance for the caller.
location string required
Optional generated document location such as a block, table cell, or canvas item path.
runIndex int? required
Optional zero-based rich text run index inside the generated document location.
pageNumber int? required
Optional one-based generated page number for page-scoped diagnostics.
tableRowIndex int? required
Optional zero-based table row index for table-cell diagnostics.
tableColumnIndex int? required
Optional zero-based table column index for table-cell diagnostics.
fieldName string? required
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" optional
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 required
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 required
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 required
Zero-based table row index.
columnIndex int required
Zero-based table column index.

Returns

PdfTextEncodingDiagnostic A diagnostic carrying the same text details and the supplied table cell coordinates.

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.

public string Message { get; } #

Human-readable diagnostic message.