# QR codes

### How to transform any text/ URL into QR code image with docMaker <a href="#how-to-transform-any-text-url-into-qr-code-image-with-docmaker" id="how-to-transform-any-text-url-into-qr-code-image-with-docmaker"></a>

With docMaker you can convert any text string or webpage URL into a QR code.

In order to do that, you simply need to add “.toQRCode” to your dynamic data, like this:

&#x20;

```plaintext
{ “myURL.toQRCode” : “https://espn.com”  }
```

Copy

&#x20;

The trick for the QR codes feature is that in your template you have to use an image tag (starting with %)  like this :

&#x20;

| **Template**                                                                                                    |                                                                                        | Result                                                              |
| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| <p>{%myURL}                                                           </p><p>                              </p> | <p><span data-gb-custom-inline data-tag="emoji" data-code="27a1">➡️</span></p><p> </p> | <img src="/files/cDh9IMBqNaltXVNErWim" alt="" data-size="original"> |

&#x20;


---

# 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://guide.docmaker.co/features/create-pdf-from-docx-template/build-your-docx-template/qr-codes.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.
