how to link a qr code to a pdf

How to Make a QR Code for a PDF in Google Drive

Updated May 31, 2026

Google Drive is one of the easiest places to host a PDF for a QR code, but the sharing setting is where people trip up. Get that right and linking a QR code to your Drive PDF is quick and reliable. Here's exactly how to do it.

Set the Sharing to Public

Upload your PDF to Google Drive, right-click it, and open the share settings. Change general access so that anyone with the link can view. This is the critical step, if it stays restricted, scanners will hit a request-access wall instead of your document.

Copy the Link and Generate

Copy the shareable link, then paste it into a PDF QR generator. The code now points to your Drive file. Choose a dynamic code if you might replace the PDF later, so the same code can follow the new version.

Consider How It Opens

A Drive link opens the PDF in Google's viewer, which works fine on phones. If you'd prefer it to download or open differently, you can adjust the link format, but the standard view link is the most universally smooth for scanners.

Test Before Sharing

Scan the code with a phone that isn't signed into your Google account, this mimics what your audience experiences. If it opens the PDF without asking to log in, your sharing is correct and the code is ready.

FAQ

Common questions are answered in the FAQ section below.

Frequently Asked Questions

How do I link a QR code to a Google Drive PDF?+
Set the file's sharing to anyone with the link can view, copy the link, and paste it into a QR generator to create the code.
Why do scanners get an access request?+
The Drive sharing is still restricted. Change general access so anyone with the link can view, then the code opens for everyone.
What sharing setting do I need?+
Anyone with the link, set to viewer. Restricted access blocks scanners who aren't on your account.
How should I test it?+
Scan with a phone not signed into your Google account, mimicking your audience. It should open the PDF without a login prompt.
Does a Drive link open on phones?+
Yes. The standard link opens the PDF in Google's viewer, which works smoothly on mobile devices.
Can I replace the PDF later?+
With a dynamic code, yes, you can repoint it. With a static Drive link, replacing the file may change the link, so dynamic is safer.
Does the code store the file?+
No. It links to your Drive PDF; the document stays in Drive, not inside the code.
Can I make the PDF download instead of view?+
You can adjust the link format to prompt a download, though the standard view link is usually the smoothest for scanners.

Ready to create your own?

Generate a custom, trackable QR code in seconds — no design skills needed.

Create a QR code free →