---
title: "WarningType"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/warningtype/"
product: "Aspose.PDF for Java API Reference"
description: "/ * Enum represented warning type. / * /"
---

**Inheritance:**
java.lang.Object, com.aspose.ms.System.ValueType<com.aspose.ms.System.Enum> com.aspose.ms.System.Enum com.aspose.pdf.WarningType, com.aspose.ms.System.ValueType<com.aspose.ms.System.Enum>, com.aspose.ms.System.Enum com.aspose.pdf.WarningType, com.aspose.ms.System.Enum, com.aspose.pdf.WarningType

```
public final class WarningType extends com.aspose.ms.System.Enum
```

/ * Enum represented warning type. / * /

## Fields

| Field | Description |
| --- | --- |
| [CompatibilityIssue](#CompatibilityIssue) | Known issue that will prevent the document being opened by certain user agents, or previous versions of user agents. |
| [DataLoss](#DataLoss) | Text/chart/image or other data is completely missing from either the document tree following load, or the created document following save. |
| [InvalidInputStreamType](#InvalidInputStreamType) | Invalid input stream type |
| [MajorFormattingLoss](#MajorFormattingLoss) | Major formatting losses compared to the original document. This is for occasions when the formatting loss is substantial but the data is still there. |
| [MinorFormattingLoss](#MinorFormattingLoss) | Minor formatting losses compared to the original document. This is for minor losses of fidelity. |
| [SourceFileCorruption](#SourceFileCorruption) | The file is corrupted. |
| [UnexpectedContent](#UnexpectedContent) | The file has unexpected content. |

### CompatibilityIssue {#CompatibilityIssue}
```
public static final int CompatibilityIssue
```

Known issue that will prevent the document being opened by certain user agents, or previous versions of user agents.

### DataLoss {#DataLoss}
```
public static final int DataLoss
```

Text/chart/image or other data is completely missing from either the document tree following load, or the created document following save.

### InvalidInputStreamType {#InvalidInputStreamType}
```
public static final int InvalidInputStreamType
```

Invalid input stream type

### MajorFormattingLoss {#MajorFormattingLoss}
```
public static final int MajorFormattingLoss
```

Major formatting losses compared to the original document. This is for occasions when the formatting loss is substantial but the data is still there.

### MinorFormattingLoss {#MinorFormattingLoss}
```
public static final int MinorFormattingLoss
```

Minor formatting losses compared to the original document. This is for minor losses of fidelity.

### SourceFileCorruption {#SourceFileCorruption}
```
public static final int SourceFileCorruption
```

The file is corrupted.

### UnexpectedContent {#UnexpectedContent}
```
public static final int UnexpectedContent
```

The file has unexpected content.
