A QR code holds a link, not the PDF
No QR code can carry a whole PDF. The dots hold a short piece of text, and for a PDF that text is the web address where the file lives. When someone scans, their phone opens that address. Three things follow from this:
- The file has to be online. A PDF on your laptop has no address a stranger's phone can reach.
- Sharing has to be open. If the link works only for you, everyone else sees a sign-in page or a request for access.
- The code lasts as long as the link. Delete the file or turn off sharing and the printed code stops working. Nothing about the code itself runs out.
A maker that asks you to upload the file has to store it on its own servers and put its own link in the code, so the code works only while that service keeps your file. Here the code holds your link and nothing passes through us. See static and dynamic codes for when a paid service is worth it.
What the link check looks for
The check runs in your browser and reads only how the address is written. It does not visit the link, so it cannot see the sharing setting itself. That is why the last step is always to scan the code signed out.
Where to get the right link
Google Drive
Select the PDF and click Share. Under General access, click the arrow and choose Anyone with the link. Google's help says anyone on the internet who has the link can then open the file without signing in to a Google Account. Keep the role as Viewer, click Copy link, then Done. With the other choice, Restricted, only people who have been given access can open the file. If you use a work or school account, your administrator may limit sharing outside the organization.
Dropbox
Log in to dropbox.com, hover over the PDF, click Share, then Copy link. Dropbox's help says anyone with a view-only link can preview the content without editing it, and people do not need a Dropbox account for that.
The end of a Dropbox link decides how the file opens, and Dropbox documents three endings. A copied link often already ends in dl=0, which opens Dropbox's preview page. dl=1 downloads the file instead of displaying it. raw=1 skips the preview page and lets the browser show the file itself. When you paste a Dropbox link above, a "How the PDF opens" choice appears and sets the ending for you.
Dropbox can also make its own QR code: click Share, open the more options menu and choose Create QR code, then Save for a PNG file. Use that if Dropbox's code is all you need. Make it here if you want an SVG for print, your own colors, a logo, or the printed sign.
OneDrive
Select the PDF, select Share, then Copy link. Before you copy, check who the link works for. Microsoft's help says Anyone lets anyone who receives the link open the item without signing in. On a work or school account, a new link usually starts at Only people added, and your administrator may have turned the Anyone choice off, in which case it is greyed out. A link that starts with 1drv.ms is OneDrive's own short link.
Your own website
Upload the PDF with your site's media or file manager and copy the address it gives you, which normally ends in .pdf. This is usually the shortest link, a public site asks nobody to sign in, and you can replace the file later without changing the address.
Before you print
Check for an expiration date or password
Dropbox's paid plans and OneDrive let you add an expiration date or a password to a link. Microsoft's help is plain about the first: after the date you set, the link stops working. A printed code cannot be updated, so leave both off unless you mean to close the PDF on a certain day.
Shorter links print better
In our maker, a typical Google Drive link of about 80 characters makes a code 37 squares across, and a Dropbox link of about 110 characters makes one 45 squares across. A short address on your own site, such as example.com/menu.pdf, makes one 29 squares across. Fewer squares means each one is larger at the same print size, so the code scans from farther away.
Think about the phone
Everyone who scans reads the PDF on a small screen, often on mobile data. A file with a few pages and large type works better than a brochure laid out for A4 paper. Open the PDF on your own phone before you decide.
Say what is inside
The printed sheet always says "Scan to open the PDF". Add a heading that names the file, such as "Our menu", "Price list" or "Assembly instructions", so people know what they will get.