Why the file must be hosted
A QR code cannot hold a PDF or a form. It holds a link, and the phone opens that link. The largest QR code, version 40 at error correction L, holds 2,953 bytes of binary data; we confirmed that limit with the qrcode library. A one-page PDF is usually many times larger, so the file lives on a server and the code holds its address.
That makes the host the part that decides whether the code keeps working. The URL type writes exactly what you paste, adding https:// only when the link has no http:// or https:// prefix. Nothing is shortened or redirected through Link2QR. The hard part is copying the right link: one that opens for everyone, without a sign-in wall.
PDF in Google Drive: viewer link vs download link
First set sharing to Anyone with the link. A file shared only with named people shows a request-access page to everyone else.
- Viewer link:
drive.google.com/file/d/FILE_ID/view. This is what Copy link gives you. It opens the PDF in Drive's preview, with a download button. Best for menus and programs. - Download link:
drive.google.com/uc?export=download&id=FILE_ID, using the FILE_ID from the viewer link. This asks the browser to download the file. For large files, Google first shows a page saying it cannot scan the file for viruses.
To change the PDF later without a new code, open the file in Drive and use Manage versions to upload the new version. The file ID, and so the link in your printed code, stays the same.
PDF in Dropbox or on your own site
Dropbox share links end in dl=0, which opens a Dropbox preview page. Change it to dl=1 to download the file, or replace dl=0 with raw=1 to show it directly in the browser. Use one or the other, not both. Newer links also carry an rlkey parameter; keep it, or the link stops working.
A file on your own domain, such as example.com/menu.pdf, is the most durable option. You control the link, it is short, and you can replace the file at the same path whenever it changes.
Google Forms: responder link vs edit link
Click Publish at the top right, then Copy responder link. Older forms that were never moved to publishing still show Send; there, click Send, then the link icon. The link looks like docs.google.com/forms/d/e/FORM_ID/viewform. Tick Shorten URL to get forms.gle/..., which gives a smaller code. Do not copy the address bar while editing: that link ends in /edit and shows respondents a request-access page.
If scanners hit a Google sign-in screen, check the form settings. These options require a Google account:
- Restrict responses to users in your organization (Google Workspace forms).
- Limit to 1 response.
- Collect email addresses set to Verified.
- Any file upload question.
Resume and app downloads
On a resume, point the code at one destination: a portfolio, a LinkedIn profile, or a hosted copy of the resume, with a short label next to it. Download SVG so it stays sharp when printed, keep it dark on white, and skip the center logo, since a resume code is printed small.
App Store links look like apps.apple.com/us/app/app-name/id123456789, Google Play links like play.google.com/store/apps/details?id=com.example.app. Each serves only its own platform, so print two labeled codes or point one code at a page on your site with both store buttons.
Measured code sizes
Measured with the qrcode library, which picks the smallest version that fits. M is the generator default; H is the highest level. Placeholder IDs use realistic lengths.
| Encoded link | Version at M | Version at H |
|---|---|---|
| https://example.com/menu.pdf | 3 (29x29) | 4 (33x33) |
| https://forms.gle/AbCdEfGh12345678 | 3 (29x29) | 4 (33x33) |
| https://apps.apple.com/us/app/example-app/id123456789 | 4 (33x33) | 6 (41x41) |
| https://play.google.com/store/apps/details?id=com.example.app | 4 (33x33) | 7 (45x45) |
| https://drive.google.com/uc?export=download&id=1AbCdEfGhIjKlMnOpQrStUvWxYz012345 | 5 (37x37) | 8 (49x49) |
| https://drive.google.com/file/d/1AbCdEfGhIjKlMnOpQrStUvWxYz012345/view?usp=sharing | 5 (37x37) | 8 (49x49) |
Pitfalls
- Testing while signed in. Your own account can open files and forms that strangers cannot. Test on a phone that is not signed in to your Google or Dropbox account.
- Deleting or moving the file. A static code cannot follow a new link. Replace the contents instead.
- Closed forms. When a form stops accepting responses, the same code shows a closed message. Reopen the form rather than making a new one.
- Printing too small. Use the print size calculator, then read the result back with the scanner to confirm the exact link.
Frequently Asked Questions
Can a QR code hold the PDF file itself?
No. The largest QR code, version 40 at error correction L, holds 2,953 bytes of binary data, far less than a typical PDF. A PDF QR code holds a link to a file hosted somewhere else.
Can I update the PDF without reprinting the QR code?
Yes, if the link stays the same. On your own website, overwrite the file at the same path. In Google Drive, use Manage versions to upload a new version, which keeps the same file link. Uploading a new file instead creates a new link, and the old code will not follow it.
Why does my Google Form QR code ask people to sign in?
Settings that need a Google account cause it: restricting responses to your organization, limiting to one response per person, collecting verified email addresses, or including a file upload question. Turn off the ones you do not need. The form link stays the same.
Which Google Form link should I use?
The responder link. Publish the form, then click Copy responder link at the top right (older forms show Send, then the link icon instead). It ends in /viewform, or you can tick Shorten URL for a forms.gle link. The /edit link from your browser's address bar opens the form editor and asks everyone else to request access.
Should an app download QR code go to the App Store or Google Play?
A single store link only serves one platform. Either print two labeled codes, or point one code at a page on your own site that links to both stores.