Why a PDF will never fit in a QR code
The largest QR symbol, version 40, holds at most 2,953 bytes of binary data, which is under three kilobytes. A one-page PDF is usually many times that, and a scanned page far more, and even a stripped PDF with a single line of text carries a few hundred bytes of structure. No setting makes the file fit, so every QR code for a PDF is a link to a hosted file.
Where to host the PDF
The location decides how long the code works and who can open the file, so choose before you generate anything.
- Your own website. Best for a code that has to last. Upload the PDF to a path you control and leave that path alone, for example a folder named for the document.
- A cloud storage link. Quick, but check the sharing setting. Anyone-with-the-link access means anyone who scans, or sees a photo of the code, can open the file, and a link can be revoked or the owner's account can lapse.
- A document-sharing site. Convenient, but read the terms. Your file sits on someone else's server, may carry ads, and may be removed.
Open the link in a private browser window. If it asks you to sign in, everyone who scans the code will hit the same wall.
What the free PDF-to-QR sites do with your file
Many sites offer to turn a PDF into a QR code for nothing. They upload your file to their servers and hand back a code that points to a link on their domain, which makes it a dynamic code with your document behind it. It works while they keep the file and the redirect alive, and some limit scans, limit file lifetime, or ask you to pay to keep the code live. If the document is private, you've also given it to a third party. Read the terms and find out what happens to the file.
Generate the QR code for the PDF link
- Copy the PDF's public address.
- Open the QR generator and choose Website link. The address becomes a code inside the tab and isn't uploaded.
- Pick error correction M, then download SVG for print or PNG for a screen.
- Scan it with two phones and confirm the PDF opens. Check the file size as well (and read do QR codes expire before choosing a host), since someone on mobile data will be loading it.
A shorter address makes a simpler, easier code, so avoid long query strings. If your host gives you a very long URL, put the file at a cleaner path on your own site.
Can you replace the PDF after the code is printed?
Yes, as long as the new file lives at the same address. A static code can't be edited, but the file behind the address can, so replacing the PDF there makes the existing code open the new version. That's the best argument for hosting it somewhere whose address you control.
Naming and sizing the file
Give the PDF a short, permanent name with no spaces or dates, such as the document title in lowercase, so the address stays short and readable. Keep the file small; a one-page PDF over a few megabytes feels slow on mobile data. If the document is sensitive, a QR code is the wrong door, because anyone who photographs the code can follow the link.
Putting a QR code onto a PDF document
If you meant adding a code to a PDF, such as a flyer or a menu, make the code first, download the SVG, and place it in your layout program at a size that keeps the quiet zone clear. Export the PDF with vector graphics (the SVG versus PNG guide explains why) so the code isn't re-sampled, then scan the exported file, because the on-screen preview can differ from it.
Questions people ask
Can a QR code contain a PDF?
No. A QR code holds at most a few kilobytes, so it can only point to a PDF stored online.
How do I make a QR code for a PDF?
Host the PDF at a public address, paste that address into the generator as a website link, and download the code.
How free are the free PDF-to-QR sites?
They cost you in other ways. Your file sits on their server, the code redirects through their domain, and they may limit scans, add ads, or remove the file.
Where should I host the PDF?
On a site you control if the code must last. A shared cloud link is fine for short-term use if you check who can open it.
Can I update the PDF after printing the code?
Yes, if you replace the file at the same address. The printed code doesn't change.
Is it possible to put a QR code inside a PDF?
Yes. Place the SVG in your layout, keep the white border, and scan the exported file.
Sources