I want a browser API to automate print and save‑as‑PDF
Submitted by Anonymous
Permalink https://webwewant.fyi/wants/cfc30575-7abc-4638-ad62-61fc320552c1/
This idea is currently being discussed.
I build data-viewing web applications and I regularly need to print multiple views of a session to PDF — for example, different files with the same viewing parameters. Right now I have to trigger each print manually through the browser's print dialog and save each PDF one at a time.
I want a browser API that lets me programmatically trigger the browser's built-in "Save as PDF" functionality, ideally integrated with the File System Access API so I can select a destination folder and batch-save multiple PDFs without any user interaction per file.
JavaScript PDF-generation libraries exist, but they cannot match the fidelity of the browser's native print-to-PDF rendering, which correctly handles CSS paged media, fonts, and layout. Exposing this capability as a first-class web API would unlock powerful automation for reporting, document generation, and data export workflows.
- Votes
- 0
What are votes for and how are they tallied?