How to Put a PDF in a QR Code
Atualizado 18 de julho de 2026 · pela equipe CodesQR
You cannot cram a document into a pattern of squares, but you can make a QR code open a PDF instantly. The trick is where you put the file and how you link to it.
A QR code holds a small amount of text, on the order of a few thousand characters at most. A PDF is usually hundreds of kilobytes or several megabytes. The math does not work, so a QR code can never contain a PDF the way it contains a URL. What it can do is store a link to a PDF that lives online. When someone scans it, their phone opens that link and the document appears. Everything about doing this well comes down to two choices: where the file is hosted and whether the link can be edited later.
Step 1: Put the PDF somewhere with a stable link
The PDF needs a permanent web address that points straight at the file. A few common options work, each with a caveat. Cloud drives like Google Drive or Dropbox can share a file, but their links often open a preview or download screen rather than the document itself, and the address can change if you move or re-upload the file. Your own website works if you can upload a file and keep its path stable. The cleanest route is a QR service that hosts the file for you, so the link is built to be permanent from the start. That is exactly what a QR code for a PDF is designed to do.
Step 2: Generate the code from that link
Once the PDF has a real address, turning it into a code is trivial. Any generator that encodes a URL will do it, including our free link QR generator. Paste the file's address, download the image, and you have a working code. If you host the PDF through a dedicated tool, this step and the previous one usually merge into one: you upload the document and the code comes out the other side already pointing at it.
Step 3: Decide whether it needs to be editable
This is the step people skip and later regret. If you encode a plain link to the file, you have a static code. It works, but it is frozen. Replace the PDF with a new version at a different address and the printed code now points at nothing, or worse, at an outdated document. The only fix is to reprint.
A dynamic code avoids that trap. It encodes a short link that redirects to the current PDF, so you can swap the underlying file whenever the content changes and the printed code keeps working. For a price list, a manual, an event program, or any document with a shelf life, this is the difference between a one-time print and an annual reprint. It is the same idea as an editable QR code, applied to a file instead of a web page.
Make the PDF readable on a phone
A QR code that opens a document nobody can read is a wasted scan. Almost everyone who scans is on a phone, so design for a small screen. A few things help a lot:
- Keep the file size down so it loads on mobile data. Compress images before exporting.
- Prefer a single-column layout and larger type over a dense multi-column print sheet.
- Make sure the text is real text, not a scanned image, so it stays sharp when someone zooms in.
- Put the most important information near the top, since people skim on phones.
If your content is mostly a few lines rather than a full document, consider whether it needs to be a PDF at all. Sometimes a short web page reads better on a phone. But when the PDF is the point, such as a formatted spec sheet or a form, linking to it is the right call.
Beyond PDFs
The same approach works for any file type, not only documents. You can point a code at an image, a spreadsheet, a slide deck, or a zip archive using a QR code for a file. The principle never changes: the code links to the file, the file lives online, and a dynamic code lets you replace it without touching the print. If you want to double-check what an existing code points at, our QR decoder will show you the raw link.
Putting a PDF in a QR code is really about putting the PDF somewhere permanent and pointing a code at it, ideally one you can edit. Get those two right and a single printed code can serve a document that keeps changing for years. Upload a PDF and create its QR code for free to see how quick the whole thing is.