How to Embed a PDF in a QR Code

2 min read

Learn how to create a QR code that opens a PDF document. Step-by-step guide to hosting your PDF and generating a scannable QR code.

A QR code cannot store a PDF file directly — PDF files are far too large for the data capacity of a QR code. Instead, you create a QR code that links to a hosted PDF. When someone scans it, their device opens the PDF in a browser.

Here is how to do it in two steps.

Step 1: Host Your PDF Online

You need a public URL for your PDF. Upload your file to a hosting service:

  • Linkyhost — Upload your PDF and get a shareable link with a built-in viewer instantly
  • Google Drive — Upload and set sharing to "Anyone with the link"
  • Dropbox — Upload and create a shared link

The key requirement is that the link must be publicly accessible without a login.

Step 2: Generate the QR Code

Once you have the PDF URL, create a QR code:

  1. Go to a free QR code generator (QRCode Monkey, QR Code Generator, or similar)
  2. Select URL as the QR type
  3. Paste your PDF link
  4. Customize the design if needed (colors, logo)
  5. Download the QR code as PNG or SVG

Where to Use PDF QR Codes

  • Business cards — Link to a digital portfolio or resume
  • Product packaging — Link to instruction manuals or spec sheets
  • Event flyers — Link to schedules, maps, or programs
  • Presentations — Let the audience download slides
  • Restaurant menus — Link to the full menu PDF

Tips for Best Results

  • Test the QR code before printing — scan it yourself first
  • Use a short, clean URL for faster scanning and fewer encoding errors
  • Ensure mobile-friendly viewing — Linkyhost's PDF viewer works well on phones and tablets
  • Keep the PDF updated — If you need to change the document later, some services let you replace the file without changing the URL

Common Mistakes

  • Using a private or login-required link (the QR code will not work for others)
  • Creating a QR code that is too small to scan reliably (minimum 2 cm / 0.8 inches)
  • Forgetting to test on both iPhone and Android devices