---
title: "Barcode & QR-code generator"
description: "Want to print barcodes on your documents. Use your input data to generate barcodes and QR-codes. There are many types available but the most famous ones are CODE 128 and QR. [Academy - Barcode](https://www.youtube.com/embed/es8RSQ_RazM?si=xOngJpoMozrxv5lS) ###### **Example:** PDF Butler provides many…"
url: "https://pdfbutler.com/academy/pdf-butler-academy/pdf-butler-by-configtype/barcode-qr-code-generator/"
updated: "2025-09-01"
category: PDF BUTLER BY CONFIGTYPE
---

# Barcode & QR-code generator

Want to print barcodes on your documents. Use your input data to generate barcodes and QR-codes. There are many types available but the most famous ones are CODE 128 and QR.

[Academy - Barcode](https://www.youtube.com/embed/es8RSQ_RazM?si=xOngJpoMozrxv5lS)

###### **Example:**

PDF Butler provides many types of Barcode generators. In this example, let's create QR Code and Code 128 using Account Name and Id field data. You can set any field data to your barcodes in document.

1. Create SOQL Data Source to fetch Account Name and Id fields.
    ![Barcode generator pic7](https://pdfbutler.com/wp-content/uploads/2023/08/Barcode-generator-pic7.png)
2. Create Doc Config of type Main Word Document and upload this [sample](https://pdfbutler.com/wp-content/uploads/2023/08/Barcode-generator-template.docx) template by opening PDF Butler from Doc Config.
    ![Barcode generator pic1](https://pdfbutler.com/wp-content/uploads/2023/08/Barcode-generator-pic1.png)
3. Add Data Source to the Doc Config. Below are the various types of Barcodes that PDF Butler supports.
    ![Barcode generator pic2](https://pdfbutler.com/wp-content/uploads/2023/08/Barcode-generator-pic2.png)
4. Create Config types as shown below for two picture placeholders in the document. (Make sure to give names to the picture placeholders in the document)
    ![Barcode generator pic3](https://pdfbutler.com/wp-content/uploads/2023/08/Barcode-generator-pic3.png)
    ![Barcode generator pic4](https://pdfbutler.com/wp-content/uploads/2023/08/Barcode-generator-pic4.png)
5. Add the Convert component in Account record page and give the doc config Id to the component.
    ![Barcode generator pic5](https://pdfbutler.com/wp-content/uploads/2023/08/Barcode-generator-pic5.png)
6. Now generate PDF from the account record. QR Code and Code 128 will be generated nicely.
    ![Barcode generator pic6](https://pdfbutler.com/wp-content/uploads/2023/08/Barcode-generator-pic6.png)
