Back to blog
    April 17, 20266 min read

    How to Make a QR Code for a PDF File (and Track Downloads)

    How to Make a QR Code for a PDF File

    A QR code that opens a PDF is one of the most common requests for restaurants (menus), schools (handouts), real estate agents (property sheets), and product manufacturers (manuals). Done right, scanning the code instantly opens the PDF in the user's browser or PDF viewer β€” no app required.

    The catch: the PDF needs to live at a stable, public URL on the internet. The QR code itself can't *contain* a PDF; it can only contain a link to one.

    Step 1: Host Your PDF Somewhere Public

    Pick whichever option fits your situation:

    Free Hosting Options

  1. Google Drive β€” upload, set sharing to "Anyone with the link", copy the share URL
  2. Dropbox β€” upload, click **Share β†’ Create link**, replace `?dl=0` with `?dl=1` to force download
  3. OneDrive β€” upload, click **Share β†’ Copy link**, set permission to "Anyone with the link"
  4. GitHub (public repos only) β€” commit the PDF and use the raw file URL
  5. Self-Hosted Options

  6. Your own website β€” upload via your CMS or FTP and use the direct file URL (e.g., https://yoursite.com/menu.pdf)
  7. Cloud storage β€” Amazon S3, Cloudflare R2, or Backblaze B2 with a public bucket
  8. Pro Tip

    For menus and frequently updated PDFs, host on your own domain or a service that lets you replace the file at the same URL. That way, you can update the PDF without changing the link.

    Step 2: Create a Dynamic QR Code Pointing to the PDF

    Static QR codes encode the URL directly into the QR pattern. If your hosting URL ever changes (Drive renames the file, you switch from Dropbox to S3, etc.), the QR code breaks.

    A dynamic QR code solves this by encoding a short redirect URL instead. You can change the destination β€” even after the QR code is printed.

    Steps in ForeverScan

  9. Sign up for free β€” no credit card required
  10. Create QR Code β†’ URL in your dashboard
  11. Destination field
  12. Give it a clear title like "Spring 2026 Menu PDF"
  13. Create and download the PNG
  14. You now have a scannable QR code that opens the PDF on any phone.

    Step 3: Customize and Brand (Optional)

    Match the QR code to your brand by adjusting:

  15. Foreground color β€” keep dark for contrast (navy, dark green, or black work best)
  16. Corner style β€” rounded or square eye patterns
  17. Logo β€” add a small center logo (under 20% of the QR area)
  18. Read QR code design best practices for guidance on what's safe and what hurts scannability.

    Step 4: Test Before Printing

    Test the QR code with:

  19. iPhone Camera app (no third-party scanner needed since iOS 11)
  20. Android Camera app (built-in scanner since Android 9)
  21. A QR scanner app like Google Lens for older devices
  22. Verify that:

  23. The PDF opens cleanly in the phone's browser
  24. The PDF is mobile-readable (not a scanned image of tiny text)
  25. The file size is reasonable (under 5 MB for fast loading on cellular)
  26. Step 5: Track How Many People Scan It

    This is where dynamic codes shine. Every scan goes through the redirect, which means you can see:

  27. Total scans β€” how popular is this PDF?
  28. Unique visitors β€” distinct devices, not just refreshes
  29. Geographic data β€” which cities or countries scan most
  30. Device types β€” iOS vs Android split
  31. Scan timestamps β€” peak times of day or week
  32. ForeverScan's scan analytics are included on Pro and Business plans. The Business plan also exports CSV data and supports webhooks for pushing scan events into your own analytics tools.

    How to Update the PDF Without Reprinting the QR Code

    This is the killer feature of dynamic QR codes for PDFs:

  33. Upload the new version of the PDF to the same URL (Google Drive, S3, or your site)
  34. Destination URL field
  35. The next person who scans the existing printed QR code automatically gets the new PDF
  36. No reprinting, no redistribution, no broken links. This is essential for menus, manuals, and seasonal documents.

    PDF Compatibility Tips

  37. Mobile-first design β€” single column, larger fonts, no tiny tables
  38. Compress before upload β€” use [Adobe's free PDF compressor](https://www.adobe.com/acrobat/online/compress-pdf.html) to keep files under 5 MB
  39. Use linked PDFs sparingly β€” if your PDF references other files, host them all together
  40. Avoid password-protecting the file unless you also distribute the password β€” most users won't bother
  41. Use Cases

    IndustryPDF Use Case
    RestaurantsMenus, allergen info, wine lists
    Real estateProperty fact sheets, floor plans
    EducationCourse syllabi, reading lists, assignment briefs
    ManufacturingUser manuals, safety data sheets, warranty cards
    EventsPrograms, maps, speaker bios
    HealthcarePatient intake forms, post-visit instructions

    Conclusion

    A QR code for a PDF is just a QR code that points to a hosted file URL β€” but using a dynamic QR code gives you the freedom to update the PDF, switch hosts, and track downloads without ever reprinting. Create your free QR code and link it to your PDF in under two minutes.

    Ready to create your free QR codes?

    Get started with ForeverScan QR β€” no credit card required.

    Free QR code

    No card required