# PdfConversionWarning

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

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfConversionWarning.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L20)

**Modifiers**

sealed

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

## Inheritance

- object
- PdfConversionWarning

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Convert PDF to Word in .NET or your browser](/convert/pdf-to-word/) Guide
  
  Convert readable PDF content into an editable DOCX, retain conversion warnings, and avoid claiming that fixed page geometry becomes the original Word file.

## 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.

### Returned or exposed by 7

- Property [PdfBytesResult.Warnings](/api/pdf/officeimo-pdf-pdfbytesresult/#property-warnings)
- Property [PdfConversionReport.Warnings](/api/pdf/officeimo-pdf-pdfconversionreport/#property-warnings)
- Property [PdfDocumentConversionResult.Warnings](/api/pdf/officeimo-pdf-pdfdocumentconversionresult/#property-warnings)
- Method [PdfFontEmbeddingDiagnostic.ToConversionWarning](/api/pdf/officeimo-pdf-pdffontembeddingdiagnostic/#method-toconversionwarning-string)
- Property [PdfSaveResult.Warnings](/api/pdf/officeimo-pdf-pdfsaveresult/#property-warnings)
- Method [PdfTextEncodingDiagnostic.ToConversionWarning](/api/pdf/officeimo-pdf-pdftextencodingdiagnostic/#method-toconversionwarning-string)
- Method [PdfTextShapingDiagnostic.ToConversionWarning](/api/pdf/officeimo-pdf-pdftextshapingdiagnostic/#method-toconversionwarning-string)

### Accepted by parameters 3

- Method [PdfConversionReport.Add](/api/pdf/officeimo-pdf-pdfconversionreport/#method-add-officeimo-pdf-pdfconversionwarning) parameter `warning`
- Method [PdfConversionReport.AddRange](/api/pdf/officeimo-pdf-pdfconversionreport/#method-addrange-collections-generic-ienumerable-officeimo-pdf-pdfconversionwarning) parameter `warnings`
- Method [PdfDocumentConversionResult.WithAdditionalWarnings](/api/pdf/officeimo-pdf-pdfdocumentconversionresult/#method-withadditionalwarnings-collections-generic-ienumerable-officeimo-pdf-pdfconversionwarning) parameter `warnings`

Filter members 

Show inherited

## 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)` [#](#constructor-ctor-string-string-string-string-officeimo-pdf-pdfconversionwarningseverity-officeimo-pdf-pdflayoutdiagnostic-collections-generic-ireadonlydictionary-system-string-system-string)

[PdfConversionWarning.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L20)

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)` [#](#member-206594763d1c8d3e2149a99c)

[PdfConversionWarning.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L30)

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()` [#](#method-tofidelitydiagnostic)

[PdfConversionWarning.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L82)

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

Returns

`OfficeDiagnostic`

`public override string ToString()` [#](#method-tostring)

[PdfConversionWarning.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L96)

Returns a string that represents the current object.

Returns

`string` A string that represents the current object.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

## Properties

`public string Converter { get; }` [#](#property-converter)

[PdfConversionWarning.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L58)

Converter or adapter that produced the warning.

`public string Code { get; }` [#](#property-code)

[PdfConversionWarning.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L61)

Stable warning code suitable for assertions and wrapper routing.

`public string Source { get; }` [#](#property-source)

[PdfConversionWarning.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L64)

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

`public string Message { get; }` [#](#property-message)

[PdfConversionWarning.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L67)

Human-readable diagnostic message.

`public PdfConversionWarningSeverity Severity { get; }` [#](#property-severity)

[PdfConversionWarning.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L70)

Severity assigned by the converter.

`public OfficeConversionLossKind LossKind { get; }` [#](#property-losskind)

[PdfConversionWarning.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L73)

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

`public PdfLayoutDiagnostic? LayoutDiagnostic { get; }` [#](#property-layoutdiagnostic)

[PdfConversionWarning.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L76)

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

`public IReadOnlyDictionary<string, string> Details { get; }` [#](#property-details)

[PdfConversionWarning.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfConversionWarning.cs#L79)

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

<!-- PowerForge markdown artifact sha256:73FDABB8462362B3CC5C80DE6564129CA84B9DF00966F26F622C2495FFCC706E -->
