PDF Download Variant Tester
Each button below triggers a different browser mechanism for downloading a PDF. The resulting file will show the variant ID, timestamp, and requesting User-Agent so you can tell exactly which button on which device produced which file.
A. Anchor with download attribute
The native browser download hint via the download attribute. Reliable in desktop browsers; may fail silently in iOS in-app browsers (Instagram/Facebook).
Download Avariant: a-href-download
B. Anchor without download attribute
Plain anchor, no download attribute, opens in a new tab. Lets the browser decide — often inline preview in mobile Safari.
Download Bvariant: b-href-plain
C. fetch → Blob → createObjectURL → programmatic click
Fetches the PDF manually, creates a Blob URL, and triggers a hidden anchor click. Most manual variant — useful for inspecting exactly when the blob is created.
variant: c-fetch-blob
D. window.location.href assignment
Assigns the PDF URL to window.location.href. Often triggers inline preview or download depending on the browser.
variant: d-window-location
E. window.open new tab
Opens the PDF URL in a new browser tab using window.open. Behaviour varies by browser and popup blocker settings.
variant: e-window-open
F. navigator.share (Web Share API with files)
Fetches the PDF as a Blob, wraps it as a File, and calls navigator.share(). Only works on supporting devices (Android Chrome, iOS Safari 15+). Falls back gracefully.
variant: f-navigator-share
User-Agent: loading...
PWA Install
Install not available (already installed or browser does not support it)
Build: