How To Host A PDF Online And Share The Link

How to host a PDF so the link opens the document itself, not a preview or a sign-in, and how to swap the file later without breaking the link or the QR code.
The OxyPages Team · · 9 min read
You have a PDF, and somebody wants a link to it rather than an attachment. Maybe it's going on a QR code, into an email signature, or onto a poster. So you drop it in Google Drive, press Share, and send the link.
Then the complaints start. One person gets asked to sign in. Another sees a preview with a toolbar instead of the document. A third gets a download prompt and gives up.
The PDF is fine. The link is what's broken. When you host a PDF properly, the link points straight at the file and the visitor's own browser opens it, the same way it opens any web page. No account, no app, no preview screen.
Two more things bite later: the filename, which has to survive for years, and swapping the document once the link is printed on 40 table cards. A restaurant menu shows both, so that's the example I'll use.
TL;DR: To host a PDF online, put the file on a host that serves it at a plain public address ending in .pdf. Desktop browsers and iPhones open that address in their built-in viewer, and many Android phones hand it to a PDF app instead. Either way, no sign-in. Cloud drive share links usually open a preview page instead, so they suit people you know, not QR codes. Name the file once, in lowercase with hyphens, and never rename it. To update the document, upload the new version under the exact same name and every existing link and printed code shows the new one. A public PDF can be read, saved and indexed by anyone who finds the address, so nothing private goes on one.
What Does It Mean To Host A PDF Online?
Hosting a PDF means putting the file on a server that hands it to anyone who requests its address. Chrome, Safari, Firefox and Edge all have a PDF viewer built in, so on a laptop or an iPhone a direct link opens the document in a tab. Many Android phones open it in a PDF app instead, one extra tap.
The key phrase is direct link. There are two kinds of PDF link, and they behave very differently:
- A direct link ends in the filename, like
example.com/menu.pdf. The browser gets the file itself. - A share link points at a page belonging to the storage service. That page shows a preview of the file, wrapped in the service's own buttons, sign-in prompts and permissions.
A share link is fine for sending a contract to a client. It's the wrong thing to print on a sign, because a service you don't run now decides what people see.
If you'd rather turn the PDF into a web page, or you're still choosing between a PDF and a web brochure, the trade-offs between a PDF and a web page are worth five minutes first. This post assumes the PDF is the format you've chosen.
Where Can You Host A PDF So The Link Just Works?

There are five realistic places, and two questions decide between them: does the link open the document directly, and can you replace the file without the link changing?
| Where | Opens the PDF directly | Replace the file, keep the link | Sign-in for the visitor | Best for |
|---|---|---|---|---|
| Google Drive or OneDrive | No, a preview page first | Yes, with "Manage versions" in Drive | Only if sharing is restricted | Sending a file to people you know |
| Dropbox | Yes, if you change the link to end in raw=1 | Usually, if you overwrite with the same name | No | A quick direct link from files you already sync |
| Your existing WordPress site | Yes | No, a second upload is saved as menu-1.pdf | No | A one-off document that will never change |
| A static host (Netlify, Cloudflare Pages, GitHub Pages, OxyPages) | Yes | Yes, upload again under the same name | No | QR codes, signatures, anything printed |
| Email attachment | n/a | No | n/a | A record that should never change |
Google Drive keeps the same link when you upload a new version through Manage versions, which is genuinely useful. But the link still opens Drive's own viewer, toolbar and all. For a document you send to a colleague, it's the easiest choice there is.
Dropbox documents a raw=1 parameter that skips its preview page and lets the browser render the file. Overwriting a file with an identical name usually keeps the shared link, but test it after every replacement.
WordPress gives you a clean direct link, but its media library saves a second menu.pdf as menu-1.pdf, so the old link keeps serving the old menu. A plugin can fix that, which is one more thing to maintain.
A static host is the most boring option and the most reliable one. The file sits at your address plus its filename, it opens directly, and replacing it means uploading the new file with the same name. If you've never used one, the four steps to host a static website take about a minute.
My pick: Drive for people you know, a static host for anything printed or public. The moment a link goes on paper, you need to control it.
Name The File Before Anyone Sees The Link
The filename becomes part of the address, permanently. So decide it before you share anything, because renaming the file later kills every link already out there.
Four rules I follow:
- Lowercase only. Most web servers treat
Menu.pdfandmenu.pdfas two different files, even though your laptop doesn't. - Hyphens, not spaces. A space turns into
%20in the address, which looks broken on a printed card and is impossible to type. - No dates or versions in the name.
menu-oct-final-v3.pdfis out of date next month.menu.pdfnever is. - Short enough to read aloud. Somebody may have to type it from a poster.
yourcafe.com/menu.pdfpasses that test.
While you're at it, set the Title field in the PDF's document properties. Chrome and Firefox show that title in the tab instead of the filename, and "Dinner Menu, Lucky Noodle Bar" beats "Untitled-1".
How Big Should The PDF Be?
As small as you can make it while the text stays sharp. A menu or a flyer exported from Word or Canva is usually a few hundred kilobytes. The same pages scanned on a phone or exported at print quality can easily run to several megabytes.
That matters twice: your visitor is often on mobile data, and free plans cap storage, which a print-ready PDF can fill on its own.
Three ways to shrink one:
- Export a screen version. Most tools offer a "smallest file" or "web" preset beside the print one.
- Don't scan text. A scanned page is a photo of words. It's heavy, nobody can copy the phone number out of it, and screen readers can't read it aloud.
- Compress what you have. The free PDF compressor runs in your browser, so the file never leaves your computer.
Walkthrough: A Restaurant Menu On A Table QR Code

Say you run a small noodle bar. The menu lives in Canva, the prices change every couple of months, and you want a QR code on each table that opens the current menu.
Step 1: Export A Light, Readable Menu
Export from Canva as a standard PDF, not the print preset. Portrait page, large type, and check it on your own phone. A two-column A3 menu that looks great on the wall is pinch-and-zoom misery on a phone.
Step 2: Put It At A Permanent Address
Name it menu.pdf and upload it to a static host. With OxyPages, the menu goes up as part of a small free website, alongside a one-line index.html that links to it. That page matters: the upload needs at least one HTML file, and the no-account drop box on the homepage refuses PDFs entirely, so this takes a free account.
The menu then lives at the site's address followed by /menu.pdf, over HTTPS.
Step 3: Open The Link On A Phone, Then Make The Code
Open the address on your phone, on mobile data, before you print anything, and on an Android phone too if you can borrow one. If it opens straight into the menu, turn that exact address into a QR code and print the table cards.
Step 4: Change The Prices Without Reprinting
When the prices change, export again, name the file menu.pdf again, and upload it in place of the old one. Every QR code on every table now opens the new menu.
Watch for this on most static hosts: uploading a folder usually replaces the whole site with what you upload, so upload the full folder again, page and menu together, not the menu on its own.
What A Hosted PDF Cannot Do
It's public. Anyone with the address can open the PDF, save it and forward it. There's no download blocking, and a long, random filename isn't a password. Search engines index PDFs they can find. You can't put a "noindex" tag inside a PDF, so keeping one out of results takes a server header called X-Robots-Tag, which plenty of simple hosts won't let you set. Google's guide to robots rules and the X-Robots-Tag header
It doesn't count readers. Most host statistics count page views, not file downloads, so a bare PDF link tells you nothing. If you want a number, send people to a short page that links to the PDF and count visits to the page.
It may not embed elsewhere. Showing the PDF inside a page on the same site is easy, and embedding a PDF in an HTML page covers the one tag worth using. Embedding it in a frame on a different website is another matter. OxyPages blocks that for security, so if your plan is to frame the menu inside a Wix or Squarespace page, host the file on that platform instead.
And if the document is private, a payslip or anything with a home address in it, keep it off a public link entirely.
What To Do Next
- Export a screen-sized version of the PDF and check it on a phone.
- Set the Title in the file's properties.
- Name it once, in lowercase with hyphens.
- Put it on a host that gives you a direct link, and open that link on mobile data.
- Only then print the QR code or send the address.
If you want a permanent link you can replace the file behind, host a PDF with a link that keeps working takes a few minutes and no card.
FAQ
Can I Host A PDF Online For Free?
Yes. Google Drive, Dropbox and most static hosts all have free plans that will hold a PDF and give you a link. The difference is the kind of link. For a direct link that opens the document with no preview page, a free static host is the cleanest choice, though free plans cap storage, so compress large files first.
Will The PDF Open In The Browser Or Download?
On a direct link it opens in the browser's built-in viewer on desktop and on iPhones. Many Android phones download it and open it in a PDF app instead, which is still one tap and no sign-in. A host can force a download instead with a server header, but very few people want that for a menu or a brochure.
How Do I Update A PDF Without Changing The Link?
Upload the new version under exactly the same filename, in the same place. On a static host the address stays identical, so every shared link and QR code shows the new file. In Google Drive, use Manage versions rather than uploading a second copy, which would get a new link.
Can I Put A Password On A PDF Link?
Not on a plain public link. Some hosts offer password protection for a whole site, usually on a paid plan, and a shared drive with named access does the same job for free. If only certain people should read the document, use one of those, not a long filename nobody will guess.
What Is The Best Place To Host A PDF For A QR Code?
Somewhere the address is yours and won't expire, which rules out temporary share links. A static host where the file sits at your own address is the safest bet. Test the link on a phone before printing anything, because a typo on a printed code costs a reprint.