Skip to content
StylQR home
QR Code Tutorials

How to Generate a QR Code for PDF Files

Make a PDF QR code that opens a brochure, menu or manual on any phone. How to host the file, get a link that works for everyone, and keep the code current.

By StylQR Editorial TeamPublished 5 min read

StylQR blog cover: How to Generate a QR Code for PDF Files, illustrated with a PDF file with a download, a cloud and a link on a sunset background
Table of contents

A PDF QR code holds a link to a PDF that's already online. When someone scans it, their phone opens the PDF in the browser or a viewer. To make one, upload the PDF somewhere public (your website, Google Drive or Dropbox), copy a link that works for anyone, and turn that link into a QR code.

The file can't go inside the code itself; even the largest QR code holds under 3 KB. So most of this guide is about hosting: where to put the file, which settings to change, and how to update the PDF later without reprinting.

Step 1: put the PDF online

StylQR doesn't host files, so the PDF needs a home first. The main options:

WhereLink looks likeGood forWatch out for
Your own websitehttps://example.com/menu.pdfMenus, brochures, price listsYou need access to upload files
Google Drivehttps://drive.google.com/file/d/…/viewQuick sharing, no website neededMust be set to "Anyone with the link"
Dropboxhttps://www.dropbox.com/scl/fi/…Teams already using DropboxLink parameters change how it opens

Your own website is the best long-term choice. You control the address, the link looks trustworthy in the scan preview, and you can replace the file later by uploading a new version under the same file name.

Google Drive

Following Google's sharing steps: select the PDF, click Share, open the menu under General access, choose Anyone with the link, set the role to Viewer, then click Copy link. On Android, open the file's menu, choose Manage access, then Change under General access.

Skip that setting and every scanner sees a "Request access" page instead of your file. It's the most common reason PDF codes fail.

Dropbox

Create a share link for the file and copy it. Dropbox links normally end in dl=0, which shows a preview page. Dropbox's help explains that changing it to dl=1 forces a download, and raw=1 displays the file directly in the browser. For a menu or brochure, the preview or raw=1 is usually nicer than a forced download.

Your website

Upload the file through your site's media library or file manager and copy its full address. Open it on your phone first, using mobile data rather than office Wi-Fi, to make sure it isn't behind a login.

Warning: Don't share a PDF with personal or confidential information this way. Anyone who scans the code, or sees a photo of it, can open the file, and "anyone with the link" sharing can't tell them apart.

Step 3: make the QR code

  1. Open the PDF QR code generator.
  2. In PDF URL, paste the full link. The field shows https:// already; pasting a link that includes it works too.
  3. Check the preview, then add a frame that names the document: "Scan for the menu", "Scan for the price list", "Scan for the manual".
  4. Add the built-in PDF logo or your own. Error correction switches to High automatically.
  5. Keep the modules dark on a light background and the scan score high.
  6. Click Test scan, then scan the preview with your own phone, ideally an iPhone and an Android, and check the PDF opens.
  7. Download SVG or the print-ready PDF for print, or PNG for screens.

For files stored in cloud drives, StylQR also has dedicated Google Drive and Dropbox types. They take the share link the same way, and the Google Drive type also suits Docs, Sheets and Slides.

Updating the PDF without reprinting

StylQR codes are static: the link is fixed in the pattern, so the code never expires but always opens the same address. The trick is to keep the address and change the file behind it.

  • Website: upload the new version with exactly the same file name and path, replacing the old one.
  • Google Drive: open the file's File information menu, choose Manage versions, then Upload new version. It's the same Drive file, so the link stays the same.
  • Dropbox: replace the file in place, keeping the name, and check the share link still opens the new copy.

Avoid deleting the file and uploading a fresh one. That gives it a new link and breaks every printed code. Static vs dynamic QR codes covers other ways to keep printed codes current.

Make the PDF phone-friendly

A PDF that looks fine on a desktop can be painful on a phone. Before you link it:

  • Keep the file small. Compress large images so it loads quickly on mobile data. A few megabytes is comfortable; tens of megabytes is slow.
  • Use a single column and a readable font size. Multi-column layouts force people to zoom and scroll sideways.
  • Put the important part on page one. People rarely scroll through a long document on a phone.
  • Give it a clear title in the document properties, which some viewers show at the top.

For menus in particular, a web page often works better than a PDF. Digital menu QR codes compares the two.

Troubleshooting

  • "You need access" or "Request access". The Drive file isn't shared with anyone who has the link.
  • The file downloads instead of opening. Some Android phones and some Dropbox links do this. Try a Drive link or Dropbox's raw=1.
  • Page not found. The file was renamed, moved or deleted. Restore it at the original address.
  • It opens an old version. The phone has cached the file. Ask the person to refresh, or check you replaced the right file.
  • The code won't scan. Long Drive links make dense patterns, so print at least 2.5 cm (1 inch) wide and keep high contrast. Why a QR code isn't scanning has the rest.

What to do next

Upload your PDF, set it to "Anyone with the link", and paste the link into the PDF QR code generator. For other document types such as Word files or slides, see how to create a QR code for documents.

Frequently asked questions

Can I put the PDF itself inside the QR code?

No. Even the largest QR code holds under 3 KB of data, far smaller than almost any PDF. The code holds a link and the file lives online.

Do people need a PDF app to open the code?

Usually not. iPhones and most Android phones can display PDFs in the browser or a built-in viewer, though some Android phones download the file first and open it in a viewer app.

Can I password-protect the PDF?

You can add a password to the PDF file before uploading it, and share the password separately. Anyone with the code and the password can open it.

Is a PDF QR code free?

Making the code with StylQR is free, with no account and no expiry. Hosting the file is up to you, and free options like Google Drive and Dropbox work.

Share this guide

StylQR blog cover: How to Add a QR Code to Your Business Card, illustrated with a business card with an address book, a briefcase and a QR code on a sea green background

QR Code Tutorials

How to Add a QR Code to Your Business Card

Add a QR code to your business card that saves your contact in one scan or opens your profile. What to encode, size, placement, labels and print mistakes.

· 6 min read

StylQR blog cover: How to Create a QR Code for a Google Form, illustrated with a form with a checklist, a group of people and a Google icon on a indigo background

QR Code Tutorials

How to Create a QR Code for a Google Form

Turn a Google Form into a QR code people can scan to fill it in: get the right responder link, shorten it, generate the code free and avoid sign-in snags.

· 5 min read