PDF Hosting
Definition
PDF hosting is serving PDF files over HTTP with the headers that make a browser display them. Every current desktop browser has a PDF viewer built in, so a response carrying Content-Type: application/pdf renders in a tab the moment it arrives. Whether it renders or saves is settled by Content-Disposition: 'inline' shows the document, 'attachment' pushes it to disk. Because the viewer is the browser's own, a hosted PDF supports page fragments in the address — appending #page=7 to the URL opens the document at that page — and the reader can print or save it themselves at any point. Analytics differ from other file types too: a host can separate the people who opened a PDF from the far smaller number who downloaded a copy.
Why It Matters
The difference between viewing and downloading is the difference between a document that gets read and one that gets filed. Send a prospect an attachment-style download link and they save a 4 MB file, mean to look at it, and do not; send an address that opens in a tab and they are already on page one. There is a measurement consequence as well, because two numbers that get casually merged are not the same thing. If 400 people open a report and 30 save it, the open count tells you about interest and the save count tells you about intent, and averaging them into '430 engagements' throws away both. A PDF that is slow to appear loses readers before either number is earned.
How It Works
The host answers with Content-Type: application/pdf and Content-Disposition: inline, and the browser hands the response to its viewer instead of the download manager. The viewer then asks for the document in pieces using HTTP range requests, so it can paint page one before the last page has arrived — but only if the file is linearised, the option most export tools call 'fast web view'. Without it the viewer must wait for the whole file, which is why a 30 MB unlinearised scan seems to hang. Switching the disposition to attachment turns the same address into a download link, with the filename parameter deciding what the saved file is called. Edge analytics can tell the two apart, counting a view when the inline response is served and a download only when the attachment path is taken.
Real-World Example
An agency publishes a 4 MB pitch deck at acme-pitch.99helpers.site. The client clicks the link in an email and the deck opens in the tab at full width, with no download and no viewer plugin. The agency sends the same address with #page=12 to a colleague who only needs the pricing page. In the 99helpers analytics the deck shows 118 views and 14 downloads over a fortnight, which tells the team which prospects took a copy away with them.
Common Mistakes
- ✕Serving every PDF as an attachment by habit, so a document meant to be read is dropped into a downloads folder and forgotten
- ✕Exporting without fast web view, which forces the browser to fetch all 30 MB before it can draw the first page
- ✕Assuming a hosted PDF is private because it is not linked anywhere — the address is public and the file is indexable like any other page
- ✕Reading views and downloads as one figure, when they measure quite different levels of interest
Related Terms
Content-Disposition
Content-Disposition is an HTTP response header that tells the browser whether to show a file in the window or save it to disk, and what name to suggest when it saves. It is how one URL can either open a PDF in a tab or start a download.
Download Link
A download link is an address that makes the browser save a file to disk instead of displaying it in a tab. The behaviour comes from a header on the response or an attribute on the anchor tag, not from anything inside the file.
Document Hosting
Publishing office documents — .docx, .xlsx, .pptx, .csv, .rtf — at web addresses. No browser can draw these formats, so a correct response ends in a clean download with the right file name.
MIME Type
A MIME type, also called a media type or content type, is the short label a server sends to say what kind of data a response contains — text/html, image/png, application/pdf. The browser decides what to do with the bytes based on that label, not on the file name.
Web Analytics
Measuring who visits a site and what they look at. The two methods — a script running in the visitor's browser, or counting each request as it is served — produce different numbers, and neither of them is wrong.
Put a file online in seconds
Drop in a document, an image, a page or a whole static website and share the link — free, with no build step and no server to set up.
Host a file free →