---
title: "Power Automate generate QR codes in documents | Nutrient"
canonical_url: "https://www.nutrient.io/guides/document-converter/power-automate/barcodes/create-qr-codes/"
md_url: "https://www.nutrient.io/guides/document-converter/power-automate/barcodes/create-qr-codes.md"
last_updated: "2026-05-22T14:49:21.595Z"
description: "In this guide, you’ll learn how to create a QR code in a document using Power Automate. for Nutrient Document Converter SDK."
---

# Generate QR codes in documents using Power Automate

In this guide, you’ll learn how to create a QR code in a document using Power Automate.

QR codes are two-dimensional barcodes that are often used by mobile devices to scan and quickly access information. You can also use QR codes to store metadata such as a document’s ID, last update time, author, and more.

This example uses Power Automate to add a QR code to a PDF in Dropbox. However, you can easily add QR codes to PDFs in other destinations, like SharePoint, Google Drive, OneDrive, or any platform supported by Power Automate, as well as to [other file types](https://www.nutrient.io/guides/document-converter/sharepoint/knowledge-base/what-file-formats-types-are-supported-for-conversion.md). You can also extend this example by adding additional automation, like sending your file as an email.

### Prerequisites

Before building the workflow, ensure all prerequisites are in place. You should also have some knowledge of building workflows using Power Automate.

- A full or free trial subscription for [Nutrient Document Converter for Power Automate](https://www.nutrient.io/low-code/try/converter-power-automate/)

- Appropriate privileges to create flows

- A Dropbox account connected with Power Automate

### Using Power Automate to add QR codes to PDF documents

From a high level, the workflow will look like what’s shown below.![when a file is created](@/assets/guides/muhimbi/create-qr-codes-1.png)

### Specifying the folder

Insert the **When a file is created (properties only)** flow action for Dropbox, and in the **Folder** field, specify `/muhimbi documents`.![folder with documents](@/assets/guides/muhimbi/create-qr-codes-2.jpg)

### Inserting a condition

Insert the **Condition** flow action and specify **List of Files Names**, which is the output of the **When a file is created (properties only)** action. It ends with `.pdf`.![list of files names](@/assets/guides/muhimbi/create-qr-codes-3.png)

### Getting the file content

If the step above evaluates to `true`, add **Get file content** for the Dropbox action in the **If yes** box. In the **File** field, enter **List of Files Id**, which is the output of the **When a file is created (properties only)** action.![list of file id](@/assets/guides/muhimbi/create-qr-codes-4.png)

### Adding the QR code watermark

Insert the **Add QR Code watermark** action and add the following mandatory fields to the action:

- **Source file content** — Specify **File Content**, which is the output of the **Get file content** action.

- **Content** — Enter the detail you want to be captured in the QR.

- **Version** — Auto

- **Input mode** — Binary

- **Error correction level** — Low

- **Position** — Bottom Right

- **Width** — 72

- **Height** — 72![source file content](@/assets/guides/muhimbi/pdf-converter/power-automate/create-qr-codes.png)

### Creating a file

Insert the Dropbox **Create file** action after the **Add QR Code watermark** action.

The action has three main parameters:

- **Folder Path** — The path of your destination folder.

- **File name** — **List of Files Names**, which is the output of the **When a file is created (properties only)** action.

- **File Content** — **Processed file content**, which is the output of the **Add QR Code watermark** action.

You can test this workflow by uploading a PDF document to the Dropbox location. This will trigger the flow after a minute and create a new document with a QR code, as shown in the screenshot below.![test workflow](@/assets/guides/muhimbi/create-qr-codes-6.png)

When you scan this QR code, you’ll see it reads **File Accessed on <<Date and Time>>**.

## Additional resources

- [Add barcodes to documents](https://www.nutrient.io/blog/add-barcodes-to-documents-using-sharepoint-workflows-office-365-or-api/)
---

## Related pages

- [Add barcodes using Power Automate](/guides/document-converter/power-automate/barcodes.md)
- [Generate barcodes in documents using Power Automate](/guides/document-converter/power-automate/barcodes/create-barcodes.md)

