QR Code Generator for PDF Files

Share PDF documents instantly with QR codes. Perfect for product manuals, event programs, and marketing collateral.

Quick Facts

Best Size

1.5" x 1.5" (4cm) for print materials

Recommended Format

PNG at 512px for versatility

Error Correction

Medium (15%). Codes with a centre logo use High (30%)

Why Use This?

Instant Access

People scan and view your PDF immediately - no searching required.

Save Printing

Link to digital documents instead of printing lengthy materials.

Replace the File, Keep the Link

Upload a new version at the same address and the printed code opens it.

Count every scan

Make QR codes for your TrimLink short links and see how many scans each one gets, by country and device. The Free plan includes 5 QR codes a month.

Generate Your QR Code

Configure options and click Generate

Enter any URL to generate a QR code

PNG or SVG format

Higher resolution for print

Higher levels work better if QR code gets damaged

How to Create a PDF QR Code

  1. 1

    Host your PDF

    Upload to Google Drive, Dropbox, or your website. Get a direct link.

  2. 2

    Make it public

    Ensure the sharing settings allow anyone with the link to view.

  3. 3

    Generate QR code

    Paste the PDF URL above and generate your QR code.

  4. 4

    Print and distribute

    Add the QR code to print materials, signage, or products.

Tips for Best Results

Use direct links

Link directly to the PDF, not a page with download buttons. Better user experience.

Optimize file size

Large PDFs take time to load on mobile. Compress if possible.

Mobile-friendly PDFs

Consider the reading experience on small screens when designing your document.

A QR code cannot hold a PDF, only the address of one

The largest QR code holds 2,953 bytes of data, according to Denso Wave, the company that invented the format. That is far too small for a document. A "PDF QR code" is a web link code whose address opens a PDF stored somewhere online. Everything that matters happens at that address: whether it opens for everyone, how it looks on a phone, and whether it still exists next year.

That makes the hosting link the real decision. Long storage links also make dense codes. A Google Drive share link of 82 characters needs QR version 5 (37 x 37 modules) at Medium error correction, against version 2 (25 x 25) for a 26-character short link, when we ran both through the library our tool uses.

Google Drive links: share link and replacing the file

In Google Drive, set the file's general access so anyone with the link can view it, then copy the share link. That link opens Drive's own viewer. Test it in a private browser window where you are signed out, because a link that works for you may still ask strangers to request access.

To update the document later, do not upload a second file. Google's help page describes the route: select the file, open the More menu, choose File information, then Manage versions, and click Upload new version. That replaces the file in place instead of creating a new one with a new link. Google also notes that an old version may be deleted after 30 days or once 100 newer versions exist.

Dropbox links: preview, download or open in the browser

A Dropbox shared link ends in a query parameter that decides what the scan does, according to Dropbox's help centre:

  • dl=0, which shared links often carry already, shows Dropbox's preview page.
  • dl=1 forces the browser to download the file.
  • raw=1 skips the preview page and lets the browser render the file directly. Dropbox says this causes an HTTP redirect, which phones follow without trouble.

Making the PDF pleasant on a phone

Most scans happen on a phone, often on mobile data. Compress large scans and images before uploading, and lay out short documents in a single column so nobody has to pinch and zoom. How a PDF opens differs between phones and browsers. Some show it in the browser, others download it first. Test on an iPhone and an Android phone.

If the document changes often, consider a web page instead of a PDF. A page on your own site can be edited at the same address forever, and the printed code keeps working. Restaurants face exactly this choice, covered in the menu QR guide.

Codes made with this free tool encode the exact address you paste and create no link, so scans are not counted. To count them, encode a TrimLink short link made in your account. That link's destination cannot be changed later, so point it at a file address you will keep.

Frequently Asked Questions

Can a QR code contain a PDF file?▼
No. The largest QR code holds 2,953 bytes, so it can only hold the web address of a PDF that is stored online. The file must stay at that address for the code to keep working.
How do I update a PDF without breaking the QR code?▼
Replace the file at the same address instead of uploading a new one. In Google Drive, use Manage versions and Upload new version. On your own website, overwrite the file with the same name and path. The printed code stays the same and opens the new file.
Should a PDF QR code download the file or open it?▼
Opening is usually better for reading on a phone. With Dropbox, raw=1 renders the file in the browser and dl=1 forces a download. Google Drive share links open in Drive's viewer.
Why does my Google Drive QR code ask people to request access?▼
The file's general access is still restricted. Change it to anyone with the link can view, then test the link in a signed-out private browser window before printing.

Want to Track QR Code Scans?

Create a free TrimLink account to make QR codes for your short links. See how many scans each code gets, on which days, and from which countries.

More QR code generators

Keep reading

Guides that go deeper than this page.