# PDFACompatibilityPolicy

| Method Name             | Argument Name | Argument Type |
| ----------------------- | ------------- | ------------- |
| pdfACompatibilityPolicy | policy        | int           |

When an operation (e.g. pdfmark) is encountered which cannot be emitted in a <mark style="color:red;">PDF/A</mark> compliant file, this policy is consulted, there are currently three possible values:

* <mark style="color:red;">**0:**</mark> (default) Include the feature or operation in the output file, the file will not be PDF/A compliant. Because the document Catalog is emitted before this is encountered, the file will still contain PDF/A metadata but will not be compliant. A warning will be emitted in this case.
* <mark style="color:red;">**1:**</mark> The feature or operation is ignored, the resulting PDF file will be PDF/A compliant. A warning will be emitted for every elided feature.
* <mark style="color:red;">**2:**</mark> Processing of the file is aborted with an error, the exact error may vary depending on the nature of the PDF/A incompatibility.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mostafaznv.gitbook.io/pdf-optimizer/advanced-usage/configuring-ghostscript/pdfacompatibilitypolicy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
