how to create a qr code for a pdf

How to Make a QR Code for a PDF on Windows

Updated Mag 31, 2026

Creating a QR code for a PDF on Windows follows the same simple principle as anywhere: host the document, then generate a code that links to it. With OneDrive or any cloud service plus a browser, you can have a working code in a few minutes. Here's how.

Host the PDF

Upload the PDF to OneDrive, Google Drive, or your website, and create a shareable public link. Paste that link into your browser to confirm the PDF opens correctly without requiring a sign-in, since your audience won't have your account.

Generate the QR Code

Open a PDF QR generator, paste the link, and create the code. Choose dynamic if you expect to update the file. Customize colors and add a frame if you like, then download, PNG for everyday use, or a vector for large print.

Test the Code

Scan the code on your screen with a phone to confirm it opens the PDF. If nothing happens or it asks for a login, fix the sharing permission so the link is publicly accessible, then test again.

Put It to Work

Insert the code into Word documents, flyers, or print layouts. Add a short prompt like "Scan for the full document," size it large enough to scan comfortably, and you're ready to distribute.

FAQ

Common questions are answered in the FAQ section below.

Frequently Asked Questions

How do I create a QR code for a PDF on Windows?+
Host the PDF (e.g. OneDrive), create a public link, paste it into a QR generator, download the code, and test it with a phone.
Can I use OneDrive or Google Drive?+
Yes. Upload the PDF, create a shareable public link, and confirm it opens the file without a sign-in before generating the code.
Why does my code ask people to log in?+
The sharing permission isn't public. Set the link so anyone can view it, then regenerate or retest the code.
What format should I download on Windows?+
PNG for screens and small print; a vector file for large print so the code stays sharp at size.
How do I test the code?+
Scan it on your screen with a phone. If it opens the PDF, it works; if not, fix the link's public sharing and retry.
Does the code store the PDF?+
No. It links to the hosted document; the PDF itself lives online, not within the code.
Can I put the code in a Word document?+
Yes. The downloaded code is an image you can insert into Word, flyers, or any print layout.
Should the PDF code be dynamic?+
If you'll update the file, yes. A dynamic code lets you swap the PDF without creating a new code.

Ready to create your own?

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

Create a QR code free →