# Adding QR / Barcodes to PDFs

#### Adding QR Code & Barcode content to PDF Templates can be accomplished when using PDF Generator in concert with [Yansa's Barcode & QR Code Generator](https://store.servicenow.com/sn_appstore_store.do#!/store/application/eb2b91341bd68490118b8774cc4bcbbf).

When both apps are installed in your ServiceNow instance, a [**PDF Template Merge Map**](/pdf-generator/technical-docs/building-a-pdf-template/merge-maps.md) of type **QR/Barcode** will be available. This can be selected in order to embed any active [**Barcode Generator** ](https://docs.yansalabs.com/barcode-and-qr-code-generator/technical-docs/building-a-barcode-label/barcode-generator)into your PDF document.

Please reference documentation of [**Merge Maps**](/pdf-generator/technical-docs/building-a-pdf-template/merge-maps.md)**,** [**HTML to PDF Merge Templates**](/pdf-generator/technical-docs/building-a-pdf-template/html-to-pdf-merge-templates.md), and [**Label Templates**](/pdf-generator/technical-docs/building-a-pdf-template/creating-labels/label-templates.md) to learn how to add a QR/Barcode Merge Map to your PDF template.

On the next page, we'll show you a step-by-step example of creating a Label Template w/ barcode content. This example also illustrates methods to build non-label PDFs w/ barcode content.

When generating pages of labels (such as asset tags), we recommend using Yansa Labs' [Asset Tag Maker](https://docs.yansalabs.com/asset-tag-maker/) application, which is a purpose-built overlay to facilitate the process of batch tag generation.


---

# 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://docs.yansalabs.com/pdf-generator/technical-docs/adding-qr-barcodes-to-pdfs.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.
