Docento.app
Glowing laptop screen at night
All Posts

How to Add a QR Code to a PDF (and Make Sure It Scans)

By The Docento.app TeamPublished 3 min read
Try Docento's free PDF editor — No sign-up, 100% private — sign, annotate, and stamp PDFs in your browser.Open the editor

QR codes turn a printed page into a link: a flyer to a booking page, a menu to allergy information, an invoice to a payment page, a certificate to a verification page. Adding one to a PDF is simple. Making sure it scans, and that people trust it, takes a little more care.

Generate the QR code

Use a QR code generator to turn your link into an image. Choose:

  • A static QR code if the link will never change. It encodes the URL directly and works forever.
  • A dynamic QR code if you might change the destination later. These go through a redirect service, so check the provider is reliable and will not expire your code.

Download the code as PNG at a high resolution, or as SVG for perfectly sharp printing.

Place it in the PDF

You can add the QR code in two ways:

  1. In the original document: insert the image in your word processor or design file before exporting to PDF. This is the cleanest option.
  2. On top of an existing PDF: use a PDF editor to place the image on the page, like a stamp. See how to add a stamp to a PDF for a similar workflow.

Size it so phones can scan it

  • Minimum about 2 cm (0.8 inch) square for close-range scanning, such as a menu or a business card.
  • Larger for distance: a poster read from a few metres away needs a much bigger code.
  • Keep a quiet zone: leave a white margin around the code, roughly four modules (the small squares) wide.
  • High contrast: dark code on a light background. Avoid light colours and busy backgrounds behind it.

Test before printing

Scan the code from the PDF on screen, then from a printed test page, with at least two different phones. Check that it opens the right page and that the page works on mobile.

Add a short label

A line of text next to the code tells people what they will get: "Scan to book", "Scan for allergy information". Also print the short URL underneath for people who prefer to type it.

Avoid looking like a scam

QR codes are increasingly used in phishing, so people are right to be cautious. Build trust by:

  • Linking to your own recognisable domain where possible.
  • Not using a QR code to ask for passwords or payment details unexpectedly.
  • Printing the destination URL next to the code.

See QR code phishing in PDFs for what attackers do, so you can avoid looking similar.

Common uses

  • Gift certificates, linking to booking or verification. See how to make a printable gift certificate PDF.
  • Checklists, linking to the latest digital version.
  • Invoices, linking to a payment page.
  • Event flyers, linking to tickets or a map.

Takeaway

Generate a static code for permanent links, export it as PNG or SVG, place it with a white margin at a scannable size, test it with real phones on paper, and add a clear label with the URL. A good QR code is quick to scan and obviously trustworthy.

Try Docento's free PDF editor

No sign-up, 100% private — sign, annotate, and stamp PDFs in your browser.

Open the editor

Related Posts