# PDFAConvertResult Class

> Return the PDF/A 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/PDFAConvertResult
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class PDFAConvertResult
```

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

## Description

Return the PDF/A compliant version of the document.

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

PDF/A is an ISO-standard version the PDF format, lighter and designed to be used with PDF files that need to be archived for long periods. For example, the fonts in a PDF/A file are embedded in the file itself, and not accessed from the host machine.

**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

### PDFAConvertResult

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

*constructor*

### PDFAConvertResult

```java
com.datalogics.PDFL.PDFAConvertResult.PDFAConvertResult(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

### getPDFADocument

```java
Document com.datalogics.PDFL.PDFAConvertResult.getPDFADocument()
```

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

Return the PDF/A compliant version of the document.

This will return null if the conversion failed.

### getPDFASaveFlags

```java
EnumSet< SaveFlags > com.datalogics.PDFL.PDFAConvertResult.getPDFASaveFlags()
```

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

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

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

### setPDFADocument

```java
void com.datalogics.PDFL.PDFAConvertResult.setPDFADocument(Document value)
```

**Parameters**

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

**Returns:** `void`

Set the PDF/A compliant version of the document.

### setPDFASaveFlags

```java
void com.datalogics.PDFL.PDFAConvertResult.setPDFASaveFlags(EnumSet< SaveFlags > value)
```

**Parameters**

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

**Returns:** `void`

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