Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfConversionWarning

OfficeIMO.Pdf

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

Shared converter warning used by OfficeIMO PDF adapters so wrappers can consume one diagnostic shape.

Inheritance

  • object
  • PdfConversionWarning

Usage

Explore 10 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.

Accepted by parameters 3

Constructors

PdfConversionWarning 2 overloads
public PdfConversionWarning(string converter, string code, string source, string message, PdfConversionWarningSeverity severity = Warning, PdfLayoutDiagnostic? layoutDiagnostic = null, IReadOnlyDictionary<string, string>? details = null) #

Creates a converter warning.

Parameters

converter string required
code string required
source string required
message string required
severity OfficeIMO.Pdf.PdfConversionWarningSeverity = Warning optional
layoutDiagnostic OfficeIMO.Pdf.PdfLayoutDiagnostic? = null optional
details System.Collections.Generic.IReadOnlyDictionary<string, string>? = null optional
public PdfConversionWarning(string converter, string code, string source, string message, PdfConversionWarningSeverity severity, OfficeConversionLossKind lossKind, PdfLayoutDiagnostic? layoutDiagnostic = null, IReadOnlyDictionary<string, string>? details = null) #

Creates a warning with explicit fidelity impact, preserving loss-bearing informational diagnostics from upstream renderers and format adapters.

Parameters

converter string required
code string required
source string required
message string required
severity OfficeIMO.Pdf.PdfConversionWarningSeverity required
lossKind OfficeIMO.OfficeConversionLossKind required
layoutDiagnostic OfficeIMO.Pdf.PdfLayoutDiagnostic? = null optional
details System.Collections.Generic.IReadOnlyDictionary<string, string>? = null optional

Methods

public OfficeDiagnostic ToFidelityDiagnostic() #

Projects this warning into the shared category-preserving conversion contract.

Returns

OfficeDiagnostic
public override string ToString() #

Returns a string that represents the current object.

Returns

string A string that represents the current object.

Properties

public string Converter { get; } #

Converter or adapter that produced the warning.

public string Code { get; } #

Stable warning code suitable for assertions and wrapper routing.

public string Source { get; } #

Source document area, page, sheet, slide, block type, or feature that produced the warning.

public string Message { get; } #

Human-readable diagnostic message.

public PdfConversionWarningSeverity Severity { get; } #

Severity assigned by the converter.

public OfficeConversionLossKind LossKind { get; } #

Typed fidelity impact, independent of the diagnostic's presentation severity.

public PdfLayoutDiagnostic? LayoutDiagnostic { get; } #

Optional shared layout diagnostic when the warning maps to visible PDF layout or clipping behavior.

public IReadOnlyDictionary<string, string> Details { get; } #

Additional converter-specific details such as sheet name, slide number, or feature name.