A QR code cannot hold a PDF, only the address of one
The largest QR code holds 2,953 bytes of data, according to Denso Wave, the company that invented the format. That is far too small for a document. A "PDF QR code" is a web link code whose address opens a PDF stored somewhere online. Everything that matters happens at that address: whether it opens for everyone, how it looks on a phone, and whether it still exists next year.
That makes the hosting link the real decision. Long storage links also make dense codes. A Google Drive share link of 82 characters needs QR version 5 (37 x 37 modules) at Medium error correction, against version 2 (25 x 25) for a 26-character short link, when we ran both through the library our tool uses.
Google Drive links: share link and replacing the file
In Google Drive, set the file's general access so anyone with the link can view it, then copy the share link. That link opens Drive's own viewer. Test it in a private browser window where you are signed out, because a link that works for you may still ask strangers to request access.
To update the document later, do not upload a second file. Google's help page describes the route: select the file, open the More menu, choose File information, then Manage versions, and click Upload new version. That replaces the file in place instead of creating a new one with a new link. Google also notes that an old version may be deleted after 30 days or once 100 newer versions exist.
Dropbox links: preview, download or open in the browser
A Dropbox shared link ends in a query parameter that decides what the scan does, according to Dropbox's help centre:
dl=0, which shared links often carry already, shows Dropbox's preview page.dl=1forces the browser to download the file.raw=1skips the preview page and lets the browser render the file directly. Dropbox says this causes an HTTP redirect, which phones follow without trouble.
Making the PDF pleasant on a phone
Most scans happen on a phone, often on mobile data. Compress large scans and images before uploading, and lay out short documents in a single column so nobody has to pinch and zoom. How a PDF opens differs between phones and browsers. Some show it in the browser, others download it first. Test on an iPhone and an Android phone.
If the document changes often, consider a web page instead of a PDF. A page on your own site can be edited at the same address forever, and the printed code keeps working. Restaurants face exactly this choice, covered in the menu QR guide.
Codes made with this free tool encode the exact address you paste and create no link, so scans are not counted. To count them, encode a TrimLink short link made in your account. That link's destination cannot be changed later, so point it at a file address you will keep.