How to Create a QR Code for a PDF Document
A practical guide to generating QR codes that link to PDF documents, including hosting options and file size considerations.
You have a PDF, maybe a product brochure, an event program, a user manual, a price list, or a safety data sheet, and you want people to access it by scanning a QR code. The concept is straightforward, but there are some decisions to make about hosting, file size, and user experience that will determine whether this works smoothly or frustrates your audience.
This guide covers the full process from PDF to scannable QR code, along with the practical details that most tutorials skip.
How It Works: The Basics
A QR code cannot contain a PDF file directly. QR codes hold text data, and even a small PDF is far too large to encode into a QR code pattern. Instead, your QR code contains a URL that points to where the PDF is hosted online. When someone scans the code, their phone opens a browser and loads the PDF from that URL.
The process has three parts:
- Host your PDF somewhere accessible via a public URL
- Create a QR code that points to that URL
- Print or display the QR code
Each step has considerations worth thinking through.
Step 1: Host Your PDF Online
Your PDF needs to live at a URL that anyone can access without logging in. Here are your main options, ranked roughly by ease of use.
Option A: Google Drive
Upload your PDF to Google Drive, right-click it, select "Share," and set access to "Anyone with the link." Then copy the sharing link.
Pros: Free, easy, most people already have a Google account.
Cons: The default sharing link opens Google Drive's preview interface, which adds Google's UI around your document. The URL is also long and ugly, though that does not matter for a QR code since humans do not need to type it.
Tip: To force a direct download instead of the Drive preview, modify the URL. Replace /view at the end with /export?format=pdf. This gives the scanner a cleaner experience.
Option B: Your Own Website
Upload the PDF to your website's hosting and link to it directly, something like yoursite.com/docs/brochure.pdf. If you use WordPress, you can upload PDFs through the media library.
Pros: You have full control, the URL looks professional, and loading speed depends on your hosting, which is usually faster than cloud storage for small files.
Cons: Requires website access and basic knowledge of file uploads.
Option C: Dropbox
Upload to Dropbox and create a shared link. Change dl=0 to dl=1 in the URL if you want a direct download instead of the Dropbox preview.
Pros: Simple if you already use Dropbox.
Cons: Free Dropbox has bandwidth limits. If your PDF goes viral (unlikely but possible for popular content), the link might get temporarily disabled.
Option D: Cloud Storage (AWS S3, Azure Blob, etc.)
For businesses handling many documents or needing reliable uptime, a proper cloud storage service is the best option. Upload the PDF to an S3 bucket with public read access and use the object URL.
Pros: Highly reliable, fast, scalable, professional.
Cons: Requires technical setup, costs money (though usually pennies for a single PDF).
Which Should You Choose?
For a quick one-off, Google Drive or your own website works fine. For anything business-critical or long-term, host it on your own website or cloud storage where you control the availability.
Step 2: Create the QR Code
With your PDF URL ready, the QR code creation is quick.
- Visit SmartyTags and create a free QR code.
- Paste the URL where your PDF is hosted.
- Select a dynamic QR code. This is particularly important for PDFs because documents get updated. When you revise the PDF and upload a new version to a new URL, you can redirect the QR code without reprinting.
- Customize the design to fit your use case.
- Download the QR code for print or digital use.
Why Dynamic Is Essential for PDFs
PDFs change. The product specs get updated. The menu prices shift. The event program adds a speaker. With a dynamic QR code, you update the destination URL to point to the new version of the PDF, and every printed QR code that is already out there will now lead to the updated document.
With a static code, you would need to reprint every QR code every time the PDF changes. For a product manual QR code that is printed on packaging, reprinting is not a realistic option.
Step 3: Optimize the PDF for Mobile Viewing
This step is where most people drop the ball. They create a beautiful PDF designed for desktop viewing or print, slap a QR code on it, and forget that almost everyone scanning a QR code is on a phone.
File Size
Large PDFs load slowly on mobile networks. A 50 MB brochure with high-resolution images will take painfully long to load on a phone, and many users will give up before it finishes.
Target file size: Under 5 MB for a good experience. Under 2 MB is ideal. Under 10 MB is acceptable.
How to reduce file size:
- Compress images before adding them to the PDF. Tools like TinyPNG or ImageOptim can reduce image sizes by 50 to 80 percent without visible quality loss.
- Use PDF compression tools like Adobe Acrobat's "Reduce File Size" option, Smallpdf, or iLovePDF.
- Remove embedded fonts if they are not essential for the design.
- Reduce the resolution of images to 150 DPI, which is sufficient for screen viewing even though it is too low for print.
Page Layout
Standard PDFs are designed for letter or A4 paper, which is a landscape aspect ratio on a portrait phone screen. This forces users to zoom and scroll horizontally, which is a poor experience.
If you are creating a PDF specifically for QR code access (meaning it will primarily be viewed on phones), consider:
- Portrait orientation so it fits a phone screen naturally
- Larger text (14pt minimum for body text) so it is readable without zooming
- Single-column layout that flows vertically
- Minimal margins to maximize usable screen space
If the PDF must also work in print, you might need to create two versions: a print-optimized version and a mobile-optimized version. Link the QR code to the mobile version.
Alternative: Use a Web Page Instead
For content that will be primarily accessed by phone (which is the case with QR codes), a mobile-optimized web page is almost always a better experience than a PDF. Web pages reflow to fit any screen size, load faster, and can include interactive elements.
Consider whether your content truly needs to be a PDF, or whether a web page would serve your audience better. If the content is a document people need to download, save, or print, a PDF makes sense. If it is just information to read, a web page is usually superior.
Use Cases and Best Practices
Product Packaging and Manuals
Print a QR code on product packaging that links to the full user manual PDF. This is common for electronics, appliances, furniture assembly instructions, and similar products.
Best practice: Use a dynamic code so you can update the manual if errors are found or the product is revised. Include a text label like "Scan for User Manual" next to the code.
Real Estate Listing Sheets
Agents put QR codes on yard signs or flyers that link to a detailed listing PDF with photos, floor plans, and specifications. See our full guide on QR codes for real estate for more on this use case.
Best practice: Keep the PDF under 3 MB so it loads quickly for drive-by scanners. Include the most important details (price, beds, baths, square footage) on the first page.
Event Programs
Print a QR code on event signage or tickets that links to the full event program, schedule, or speaker bios.
Best practice: Update the PDF right before the event with any last-minute changes. Since you are using a dynamic QR code, the printed signs already point to the right place.
Restaurant Menus
While we have a dedicated guide on QR codes for restaurant menus, the PDF approach is worth mentioning here as a quick solution. Upload your menu PDF and create a QR code. It works, but a mobile-optimized web page is better for this particular use case.
Safety Data Sheets and Compliance Documents
Industries like manufacturing, chemicals, and healthcare often need to provide safety data sheets (SDS) or compliance documents at the point of use. A QR code on equipment or chemical containers linking to the current SDS PDF ensures workers always have access to the latest version.
Best practice: This is one of the strongest cases for dynamic QR codes. Compliance documents get updated, and you need the QR code on the equipment to always point to the current version.
Training Materials
QR codes on physical training equipment, workstations, or classroom materials that link to training PDFs, standard operating procedures, or reference guides.
Printing Your QR Code
If the QR code will be printed (on packaging, signage, or paper materials), follow these guidelines.
Size
For scanning from arm's length (about 30 cm), the code should be at least 2 cm by 2 cm. For scanning from further away, scale up proportionally. Our QR code size guide provides specific recommendations for different distances.
Format
Download the QR code as an SVG file for print. SVG is a vector format that scales to any size without losing quality. If your print workflow requires a raster image, use a PNG at minimum 300 DPI at the final printed size.
Contrast
Ensure strong contrast between the QR code and its background. Dark code on a light background is the most reliable combination. If placing the code on a colored or photographic background, add a white rectangle behind it to guarantee contrast.
Tracking PDF Access
With SmartyTags, every scan of your QR code is tracked. You can see:
- How many people scanned the code (and presumably opened the PDF)
- When scans happened (dates and times)
- What devices were used
- General location data
This is particularly useful for evaluating the effectiveness of printed materials. If you print 5,000 brochures with a QR code linking to your full product catalog PDF, scan data tells you how many people actually engaged with it. For more on analytics, see our guide on tracking QR code scans.
Note that QR code scan tracking tells you how many people scanned the code, not how many actually read the PDF. For that level of detail, you would need analytics on the hosting side, like tracking downloads from your web server or using a link analytics tool.
Common Questions
Can I embed a QR code inside a PDF?
Yes. You can insert a QR code image into a PDF document, which links to another resource when scanned from the screen or a printout of that page. This is useful for creating interactive print documents.
What happens if I delete the PDF from the hosting location?
The QR code will lead to a broken link or a 404 error page. If you need to remove a PDF, redirect the dynamic QR code to a new URL first, such as a page explaining that the document has been updated or moved.
Can I password-protect the PDF and still use a QR code?
You can host a password-protected PDF, but the user will be prompted for a password after scanning, which adds friction. A better approach is to keep the PDF unprotected but host it behind a simple access page that collects an email address or code before providing the download link.
Is there a limit to how large the PDF can be?
There is no QR code limit since the code only contains a URL. The limit is practical: your hosting platform's file size limits and your audience's patience for downloading. Keep it under 10 MB for a reasonable mobile experience.
Getting Started
The process is quick: host your PDF, create a QR code with SmartyTags, and place it where your audience will see it. The key decisions are choosing reliable hosting and making sure the PDF is optimized for mobile viewing. Take five extra minutes to compress the file and test the scan-to-view experience on a phone before committing to print. That small effort makes a significant difference in whether people actually read what you are sharing.
SmartyTags Team
Content Team
The SmartyTags team shares insights on QR code technology, marketing strategies, and best practices to help businesses bridge the physical and digital worlds.
Related Articles

How to Put a QR Code on a Flyer or Poster
Design guidelines for placing QR codes on printed marketing materials.

How to Create a QR Code for YouTube Videos
Link printed materials directly to your YouTube content with a scannable QR code.

How to Create a QR Code for Social Media
Generate QR codes that link to your social profiles or a landing page with all your social links.
Stay up to date
Get the latest QR code tips, guides, and product updates delivered to your inbox.
No spam. Unsubscribe at any time.