Security at PDFResize
The strongest security property of this tool is architectural: your document never enters our infrastructure, because our infrastructure never handles it. Below is what that means concretely — and what it does not guarantee.
Local file handling
Documents are read with the browser’s file API and processed on your device. There is no upload endpoint, so there is no file transfer to intercept, no temporary file store to purge, and no server-side copy that could be breached.
Isolated page rendering
Page rasterization (the heaviest, most complex parsing path) runs inside a Web Worker via pdf.js, separated from the interface. Malformed documents surface as handled errors rather than freezing or taking over the page.
Strict input validation
Only files with a .pdf name, a PDF MIME type and a valid %PDF- header are accepted, with size caps (100MB desktop, 50MB mobile) so a hostile or broken file cannot exhaust a tab’s memory unchecked.
Response security headers
Responses ship with a Content-Security-Policy that restricts where scripts, frames and requests can go, plus clickjacking, MIME-sniffing and referrer protections — served from public/_headers on Cloudflare Pages.
No accounts, no stored documents
There is no authentication system and no document database, which removes entire classes of risk: no credentials to leak, no documents to subpoena, no stored files to delete.
Dependency & build hygiene
The site has a small, auditable dependency set (Astro, pdf-lib, pdf.js, Tailwind), builds are reproducible from source, and third-party scripts are not loaded — there is no advertising or tag-manager JavaScript with access to the page.
Verify it yourself
Open your browser’s Developer Tools, switch to the Network tab, and run a full resize. Every request you see will be for the site’s own static assets — no document bytes, filenames or page content appear in any of them. The same walkthrough appears in the privacy policy.
What this does not claim
- Local processing protects your document in transit and on our side — it does not protect a compromised device, a malicious browser extension, or an unsafe network on your end.
- A Content-Security-Policy raises the cost of an injection bug; it is not a substitute for correct code. The tool holds no user data that could be stolen from us, because none is stored.
- Password-protected PDFs are rejected rather than decrypted — this tool never handles decryption passwords.
Reporting a problem
If you discover a security issue — or a claim here that the code does not honour — please use the contact page. Reports that start from verifiable behaviour are prioritised.