# Host PDF files with your static site

> Upload PDF files as static assets inside your site and link to them from pages, buttons, forms, or documentation.

Canonical: https://staticx.site/upload-pdf

## PDFs follow deployments

PDFs are stored with the release that references them, which keeps downloadable assets consistent after rollback.

## Public when your site is public

StaticX hosts static public websites. Do not upload private or sensitive PDFs unless they are meant to be publicly accessible.

## Simple linking

Upload the PDF into your file tree, link to its path, then publish a version when the change is ready.

## Publish PDFs as normal static assets

Use PDFs for public downloads, menus, brochures, terms, reports, or lead magnets that belong to the site release.

1. **Place the PDF in the file tree** — Upload the file into a clear folder such as downloads or assets/documents.
2. **Link to the file** — Reference the PDF from a button, navigation link, landing section, or documentation page.
3. **Publish the release** — Create a deployment version so the PDF and the page linking to it stay in sync.

## PDFs are content, so they should be versioned too.

A PDF link can be just as important as the page around it. If a brochure, contract, menu, or report changes, teams need to know which file was live at the same time as the HTML.

StaticX stores PDFs with the site files so rollback restores both the link and the asset, avoiding mismatched downloads after a release change.

## PDF publishing cautions

- **Public by default** — Static assets can be requested directly. Do not upload private PDFs unless they are meant to be public.
- **Stable paths matter** — Changing a PDF filename changes the public URL, so update all page links before publishing.
- **Keep file size reasonable** — Large PDFs count toward storage and can slow visitor downloads. Compress where possible.

## FAQ

### Can I host downloadable PDFs on StaticX?

Yes. Upload PDFs as static assets and link to them from your HTML pages.

### Are PDFs private?

No. Files in a public static site should be treated as public. Use another storage model for private documents.

### Can a PDF update be rolled back?

Yes, after you publish a deployment version containing the PDF change.

[View on staticx.site](https://staticx.site/upload-pdf)
