PDF Generator
HomeBlogDocsContact
  • Overview
    • Try It!
    • Introduction
    • Key Features
    • Industry Use Cases
      • PDF Generator for Human Resources
    • Videos
  • Technical Docs
    • Getting Started
    • Building a PDF Template
      • HTML to PDF Merge Templates
      • Printable Labels
        • Label Templates
        • Label Configuration
        • Adding New Avery Type Label Configuration
        • Printing Labels
      • Merge Keys
      • Data Sources
    • Generating a PDF Document
      • Create from Wizard
      • Create from Flow Action
      • Create from Script
    • The Generate PDF Wizard
      • PDF Wizard (Standard Forms)
      • PDF Wizard (Workspaces)
      • PDF Wizard (List View)
    • Adding QR / Barcodes to PDFs
      • How-to Create Barcode Labels
    • TinyMCE Configs
    • Logging
    • Troubleshooting
    • Frequently Asked Questions
Powered by GitBook
On this page
  • Create your QR/Barcode Content
  • Create your Label Template
  • Generate your Barcode Labels
  1. Technical Docs
  2. Adding QR / Barcodes to PDFs

How-to Create Barcode Labels

PreviousAdding QR / Barcodes to PDFsNextTinyMCE Configs

Last updated 2 days ago

Creating pages of barcode labels for printing is a great way to consolidate your asset management workflow into ServiceNow, printing custom labels for laptops and other devices in your organization.

See below for a step-by-step example of how to create your own barcode labels.

Create your QR/Barcode Content

  1. Ensure you have Yansa's app installed

  2. Navigate to Barcode & QR Code Generator -> Barcode Generators and click 'New' to create a new .

When creating a Barcode Generator for use in a PDF Template, we recommend making it as simple as possible - a single Barcode Part that is the barcode or QR code component with no added borders or padding. You can add additional text/HTML content within your PDF Template.

Create your Label Template

The 'Test record' table in your Barcode Generator and the 'Source table' in your HTML to PDF Merge Template or Label Template should always be the same when using a Barcode Generator within a PDF template. This insures that dynamic data in both the Barcode Generator and PDF template will be pulled from the correct source.

Generate your Barcode Labels

  1. Use the Generate PDF button in the Label Template header to create your labels. First, you'll see the 'un-merged' version of your labels.

Generating barcodes & QR codes server-side takes time! When generating large numbers of labels, it can take several seconds or minutes to complete.

Instance memory can also affect ServiceNow's ability to render many labels. QR Codes, in particular, generate a large amount of HTML to render. Smaller instances or larger batches may result in failure to render.

Future label generation runs for the same data source will complete much faster due to caching.

  1. Finally, click next and save/attach your label PDF to your desired location!

After setting the basic settings of the and saving the record, you'll need to create a new via the related list at bottom.

Ensure you have Yansa's app installed

Navigate to Yansa PDF Generator -> Label Templates and click 'New' to create a new .

After setting the basic settings of the and saving the record, you'll need to create new via the related list at bottom. For the QR/Barcode content, that Merge Map will look similar to the example below. Note how the Merge Map is embedded in the 'Template HTML' of the Label Template above.

To make it simple for your users to generate PDFs where & when they need, you can .

Also, you can automate the generation of PDFs via or .

Click Next and select a to merge data into your labels.

It may be helpful to create multiple separate to break the process into parts.

Barcode Generator
Barcode Part
PDF Generator
Label Template
Label Template
Merge Maps
customize & place the Generate PDF button & UI on any form
Flow Action
Script
Data Source
Data Sources
Barcode Generator
Barcode & QR Code Generator
Barcode Generator w/ Barcode Part Related List
Barcode Part
Label Template w/ Merge Maps Related List
QR/Barcode Merge Map
Un-Merged Labels
Merged Labels