API Reference

Class

PdfTextEncodingDiagnostic

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Describes text that cannot be written through the current generated PDF text encoding path.

Inheritance

  • Object
  • PdfTextEncodingDiagnostic

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

PdfTextEncodingDiagnostic 7 overloads
public PdfTextEncodingDiagnostic(String source, Int32 index, String codePoint, String text, Boolean isControlCharacter) #

Creates a text encoding diagnostic.

Parameters

source System.String requiredposition: 0
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index System.Int32 requiredposition: 1
UTF-16 index of the unsupported character in the inspected text.
codePoint System.String requiredposition: 2
Unicode code point formatted as U+XXXX or U+XXXXX.
text System.String requiredposition: 3
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter System.Boolean requiredposition: 4
Whether the unsupported character is a control character.
public PdfTextEncodingDiagnostic(String source, Int32 index, String codePoint, String text, Boolean isControlCharacter, String encoding, String remediation) #

Creates a text encoding diagnostic with a custom encoding or font coverage description.

Parameters

source System.String requiredposition: 0
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index System.Int32 requiredposition: 1
UTF-16 index of the unsupported character in the inspected text.
codePoint System.String requiredposition: 2
Unicode code point formatted as U+XXXX or U+XXXXX.
text System.String requiredposition: 3
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter System.Boolean requiredposition: 4
Whether the unsupported character is a control character.
encoding System.String requiredposition: 5
Encoding or font coverage description that rejected the character.
remediation System.String requiredposition: 6
Optional remediation guidance for the caller.
public PdfTextEncodingDiagnostic(String source, Int32 index, String codePoint, String text, Boolean 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 System.String requiredposition: 0
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index System.Int32 requiredposition: 1
UTF-16 index of the unsupported character in the inspected text.
codePoint System.String requiredposition: 2
Unicode code point formatted as U+XXXX or U+XXXXX.
text System.String requiredposition: 3
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter System.Boolean requiredposition: 4
Whether the unsupported character is a control character.
encoding System.String requiredposition: 5
Encoding or font coverage description that rejected the character.
remediation System.String requiredposition: 6
Optional remediation guidance for the caller.
location System.String requiredposition: 7
Optional generated document location such as a block, table cell, or canvas item path.
public PdfTextEncodingDiagnostic(String source, Int32 index, String codePoint, String text, Boolean isControlCharacter, String encoding, String remediation, String location, Nullable<Int32> runIndex) #

Creates a text encoding diagnostic with a custom encoding or font coverage description, document location, and rich-text run index.

Parameters

source System.String requiredposition: 0
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index System.Int32 requiredposition: 1
UTF-16 index of the unsupported character in the inspected text.
codePoint System.String requiredposition: 2
Unicode code point formatted as U+XXXX or U+XXXXX.
text System.String requiredposition: 3
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter System.Boolean requiredposition: 4
Whether the unsupported character is a control character.
encoding System.String requiredposition: 5
Encoding or font coverage description that rejected the character.
remediation System.String requiredposition: 6
Optional remediation guidance for the caller.
location System.String requiredposition: 7
Optional generated document location such as a block, table cell, or canvas item path.
runIndex System.Nullable{System.Int32} requiredposition: 8
Optional zero-based rich text run index inside the generated document location.
public PdfTextEncodingDiagnostic(String source, Int32 index, String codePoint, String text, Boolean isControlCharacter, String encoding, String remediation, String location, Nullable<Int32> runIndex, Nullable<Int32> 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 System.String requiredposition: 0
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index System.Int32 requiredposition: 1
UTF-16 index of the unsupported character in the inspected text.
codePoint System.String requiredposition: 2
Unicode code point formatted as U+XXXX or U+XXXXX.
text System.String requiredposition: 3
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter System.Boolean requiredposition: 4
Whether the unsupported character is a control character.
encoding System.String requiredposition: 5
Encoding or font coverage description that rejected the character.
remediation System.String requiredposition: 6
Optional remediation guidance for the caller.
location System.String requiredposition: 7
Optional generated document location such as a block, table cell, or canvas item path.
runIndex System.Nullable{System.Int32} requiredposition: 8
Optional zero-based rich text run index inside the generated document location.
pageNumber System.Nullable{System.Int32} requiredposition: 9
Optional one-based generated page number for page-scoped diagnostics.
public PdfTextEncodingDiagnostic(String source, Int32 index, String codePoint, String text, Boolean isControlCharacter, String encoding, String remediation, String location, Nullable<Int32> runIndex, Nullable<Int32> pageNumber, Nullable<Int32> tableRowIndex, Nullable<Int32> tableColumnIndex) #

Creates a text encoding diagnostic with generated page and table-cell coordinates.

Parameters

source System.String requiredposition: 0
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index System.Int32 requiredposition: 1
UTF-16 index of the unsupported character in the inspected text.
codePoint System.String requiredposition: 2
Unicode code point formatted as U+XXXX or U+XXXXX.
text System.String requiredposition: 3
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter System.Boolean requiredposition: 4
Whether the unsupported character is a control character.
encoding System.String requiredposition: 5
Encoding or font coverage description that rejected the character.
remediation System.String requiredposition: 6
Optional remediation guidance for the caller.
location System.String requiredposition: 7
Optional generated document location such as a block, table cell, or canvas item path.
runIndex System.Nullable{System.Int32} requiredposition: 8
Optional zero-based rich text run index inside the generated document location.
pageNumber System.Nullable{System.Int32} requiredposition: 9
Optional one-based generated page number for page-scoped diagnostics.
tableRowIndex System.Nullable{System.Int32} requiredposition: 10
Optional zero-based table row index for table-cell diagnostics.
tableColumnIndex System.Nullable{System.Int32} requiredposition: 11
Optional zero-based table column index for table-cell diagnostics.
public PdfTextEncodingDiagnostic(String source, Int32 index, String codePoint, String text, Boolean isControlCharacter, String encoding, String remediation, String location, Nullable<Int32> runIndex, Nullable<Int32> pageNumber, Nullable<Int32> tableRowIndex, Nullable<Int32> tableColumnIndex, String fieldName) #

Creates a text encoding diagnostic with generated page, table-cell coordinates, and form field name.

Parameters

source System.String requiredposition: 0
Caller-provided source label such as a block, field, sheet, slide, or converter area.
index System.Int32 requiredposition: 1
UTF-16 index of the unsupported character in the inspected text.
codePoint System.String requiredposition: 2
Unicode code point formatted as U+XXXX or U+XXXXX.
text System.String requiredposition: 3
Unsupported character or surrogate pair text. Control characters are represented as an empty string.
isControlCharacter System.Boolean requiredposition: 4
Whether the unsupported character is a control character.
encoding System.String requiredposition: 5
Encoding or font coverage description that rejected the character.
remediation System.String requiredposition: 6
Optional remediation guidance for the caller.
location System.String requiredposition: 7
Optional generated document location such as a block, table cell, or canvas item path.
runIndex System.Nullable{System.Int32} requiredposition: 8
Optional zero-based rich text run index inside the generated document location.
pageNumber System.Nullable{System.Int32} requiredposition: 9
Optional one-based generated page number for page-scoped diagnostics.
tableRowIndex System.Nullable{System.Int32} requiredposition: 10
Optional zero-based table row index for table-cell diagnostics.
tableColumnIndex System.Nullable{System.Int32} requiredposition: 11
Optional zero-based table column index for table-cell diagnostics.
fieldName System.String requiredposition: 12
Optional generated AcroForm field name for form-field diagnostics.

Methods

public PdfConversionWarning ToConversionWarning(String converter = "OfficeIMO.Pdf") #
Returns: PdfConversionWarning

Converts this text diagnostic to the shared conversion warning shape used by PDF adapters.

Parameters

converter System.String = "OfficeIMO.Pdf" optionalposition: 0
Converter or adapter name to place on the warning.

Returns

A shared conversion warning carrying this diagnostic and stable details.

public PdfTextEncodingDiagnostic WithFieldName(String fieldName) #
Returns: PdfTextEncodingDiagnostic

Returns a copy of this diagnostic annotated with a generated AcroForm field name.

Parameters

fieldName System.String requiredposition: 0
Generated field name.

Returns

A diagnostic carrying the same text details and the supplied field name.

public PdfTextEncodingDiagnostic WithPageNumber(Int32 pageNumber) #
Returns: PdfTextEncodingDiagnostic

Returns a copy of this diagnostic annotated with a one-based generated page number.

Parameters

pageNumber System.Int32 requiredposition: 0
One-based generated page number.

Returns

A diagnostic carrying the same text details and the supplied page number.

public PdfTextEncodingDiagnostic WithTableCell(Int32 rowIndex, Int32 columnIndex) #
Returns: PdfTextEncodingDiagnostic

Returns a copy of this diagnostic annotated with zero-based table cell coordinates.

Parameters

rowIndex System.Int32 requiredposition: 0
Zero-based table row index.
columnIndex System.Int32 requiredposition: 1
Zero-based table column index.

Returns

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 Int32 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 Boolean 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 Nullable<Int32> RunIndex { get; } #

Optional zero-based rich text run index inside the generated document location.

public Nullable<Int32> PageNumber { get; } #

Optional one-based generated page number for page-scoped diagnostics.

public Nullable<Int32> TableRowIndex { get; } #

Optional zero-based table row index for table-cell diagnostics.

public Nullable<Int32> 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.