# 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="https://566643532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLeyUmKm7uHnmMCHXLC7v%2Fuploads%2FBBhJSxsbhq7ur2UEVCvF%2Fimage.png?alt=media&#x26;token=21a9b29e-29f5-495c-91c6-c5b9bcd41b41" 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="https://566643532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLeyUmKm7uHnmMCHXLC7v%2Fuploads%2FSqUPGV6oTKtgZ71kLkZk%2Fimage.png?alt=media&#x26;token=fe6a26cf-e8b2-4125-bcc1-687fcbfe7163" alt=""><figcaption></figcaption></figure>
