# Generate PDF/A-3 Format

{% hint style="success" %}
It's not mandatory to generate a PDF/A-3 format. For storage convenience, you can opt or keep only the XML generated in the last step. However, if you need to embed the system-generated PDF invoice/credit note/debit note with the XML as a PDF/A-3, you may follow these steps.
{% endhint %}

1. QR Code Placement Preparation
   * Determine the precise X and Y coordinates on the page where you want to insert the QR code
   * Include these coordinates in your JSON payload along with size of QR. sample  JSON payload given below

     ```postman_json
         "Stackcue": {
             "documentType": "StandardInvoice",
             "stackcueComplianceIdentifier": "1a05b34a-096c-4d00-affd-95c56e7ad2db",
             "stackcueProductionIdentifier": "490d97cf-8638-44bd-b1b1-a12337e19f90",
             "qrX": 85,
             "qrY": 120,
             "qrSize": 150,

         },
     ```
2. JSON Payload Conversion

   * Convert the entire payload to Base64 format
   * Tag the converted payload as "data"
   * Include your PDF file in the JSON payload, tagged as "file"

   Given below a sample postman request with these changes

   <figure><img src="/files/mSZVUcGEYaaOAZnKZP7z" alt=""><figcaption></figcaption></figure>
3. Request Submission
   * Submit the request with the prepared payload

That's it! Your PDF will now be converted to PDF/A-3 format with the QR code integrated at the specified location after successful submission to zatca.

Note:\
The response also delivered through  `stackcue-Header` (see example below).

<figure><img src="/files/getbWQoQf6GHtczn1qs6" alt=""><figcaption></figcaption></figure>


---

# 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://stackcue.gitbook.io/stackcue-docs/get-started/let-us-integrate-to-zatca/generate-pdf-a-3-format.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.
