# PDFXConvertResult Class

> Return the PDF/X compliant version of the document.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/PDFXConvertResult
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class PDFXConvertResult
```

**Namespace:** `com::datalogics::PDFL`

## Description

Return the PDF/X compliant version of the document.

Contains a PDF document if the conversion is successful; returns null if the conversion fails.

PDF/X is a subset of the PDF ISO standard. The purpose of PDF/X is to facilitate graphics exchange, and it therefore has a series of printing related requirements. For example, in PDF/X-1a all fonts need to be embedded and all images need to be CMYK or spot colors. PDF/X-3 accepts calibrated RGB and CIELAB colors.

**Referenced by:** [`Document`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Document.md)

**Uses types:** [`Document`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Document.md)

## Constructors

### PDFXConvertResult

```java
com.datalogics.PDFL.PDFXConvertResult.PDFXConvertResult()
```

*constructor*

### PDFXConvertResult

```java
com.datalogics.PDFL.PDFXConvertResult.PDFXConvertResult(Document doc, EnumSet< SaveFlags > flags)
```

*constructor*

**Parameters**

- `doc` ([`Document`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Document.md))
- `flags` (`EnumSet< SaveFlags >`)

## Methods

### getPDFXDocument

```java
Document com.datalogics.PDFL.PDFXConvertResult.getPDFXDocument()
```

**Returns:** [`Document`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Document.md)

Return the PDF/X compliant version of the document.

This will return null if the conversion failed.

### getPDFXSaveFlags

```java
EnumSet< SaveFlags > com.datalogics.PDFL.PDFXConvertResult.getPDFXSaveFlags()
```

**Returns:** `EnumSet< SaveFlags >`

Return the SaveFlags that must be used when saving the PDF/X compliant document.

You *must* use these SaveFlags when saving the PDF/X document, or you risk breaking PDF/X compliance.

### setPDFXDocument

```java
void com.datalogics.PDFL.PDFXConvertResult.setPDFXDocument(Document value)
```

**Parameters**

- `value` ([`Document`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Document.md))

**Returns:** `void`

Set the PDF/X compliant version of the document.

### setPDFXSaveFlags

```java
void com.datalogics.PDFL.PDFXConvertResult.setPDFXSaveFlags(EnumSet< SaveFlags > value)
```

**Parameters**

- `value` (`EnumSet< SaveFlags >`)

**Returns:** `void`

Set the SaveFlags that must be used when saving the PDF/X compliant document.
