QR code for a PDF
A QR code points to a PDF; it doesn't contain one. The file is far too large to fit inside a code, so the trick is hosting the PDF online and encoding its address. Here's how to do that cleanly, keep the file fast to load, and avoid dead links.
How a PDF QR code works
This is the most common misconception about QR codes: they cannot embed a file. A QR code stores text — at most a few thousand characters — while even a small PDF is tens or hundreds of kilobytes. So a "PDF QR code" is really a URL QR code that points to a PDF hosted somewhere public.
https://yoursite.example/files/brochure.pdf
When scanned, the phone opens that address and the browser displays or downloads the PDF. Everything depends on the file being reliably reachable at that URL.
Where to host the PDF
Pick a stable, public location — the link is permanent once printed, so the file must stay put:
- Your own website — the most durable option. Upload to a folder you control, e.g.
/files/, and keep the filename stable. - Cloud storage — services like Google Drive, Dropbox, or OneDrive work, but use a proper "anyone with the link" share URL, and be aware the provider can change link formats over time.
- A document host or CDN — fine for high-traffic files, but again depends on that service staying online.
Open the URL in a private browser window before printing. Many cloud links work for you because you're logged in, then fail for strangers. The code must reach the file with no login.
Gotchas worth knowing
- Keep the URL short. Long cloud-storage links produce dense codes. Hosting on your own short path makes a coarser, more scannable pattern.
- Compress the PDF. A 40 MB file punishes anyone on mobile data. Optimize images and aim for a few megabytes at most.
- Don't move or rename the file. A static code can't be repointed. If the file's location might change, host it at a fixed URL and swap the file contents, or use a dynamic code.
- Expect a download on some devices. Mobile browsers may download rather than preview large PDFs. A web page is friendlier for things like menus — see menu QR codes.
Keep the link working for years
A printed PDF code is only as reliable as the address behind it, and that address has to survive long after you've forgotten about it. Build for longevity from the start:
- Pick a permanent home. Host the file on a domain you own and intend to keep, in a folder structure you won't reorganize.
- Freeze the filename. Renaming
brochure-final-v3.pdflater breaks every printed code. Use a clean, generic name likebrochure.pdfand overwrite it when content changes. - Overwrite, don't relocate. To update the document, upload the new version to the same URL. The code keeps working and everyone gets the latest file.
- Avoid expiring share links. Some cloud services rotate or expire links; confirm yours is permanent before printing.
- Keep a backup of the file so you can restore it if the host ever loses it.
Make a PDF QR code
Upload your PDF, copy its public URL, and paste it into the Link tab. Export the code as PNG or SVG.
Generate a PDF QR code
Paste the public URL of your hosted PDF and export a print-ready code — free and fully in your browser.
Open the URL generatorFrequently asked questions
Can a QR code contain the actual PDF file?
No. A QR code stores only a small amount of text — far less than any PDF. The code holds a link to a PDF you host online; the phone opens that link to fetch the file.
Where should I host the PDF?
On a stable, public location: your own website is most durable, but cloud storage with a proper public share link works too. Always test the link logged out before printing.
Can I replace the PDF later without changing the code?
Yes, if you keep the URL identical and overwrite the file at that address. The code points to the location, not the file's contents.
Why does the PDF download instead of opening?
Some mobile browsers download large PDFs rather than previewing them. Compress the file, or use a mobile-friendly web page when an instant on-screen view matters.