WebWeWant / webwewant.fyi

If you build websites, you inevitably run into problems. Maybe there’s no way to achieve an aspect of your design using CSS. Or maybe there’s a device feature you really wish you could tap into using JavaScript. Or perhaps the in-browser DevTools don’t give you a key insight you need to do your job. We want to hear about it!
https://webwewant.fyi
MIT License
74 stars 23 forks source link

An API to the browser print/save as pdf functionality #633

Open WebWeWantBot opened 11 months ago

WebWeWantBot commented 11 months ago

title: An API to the browser print/save as pdf functionality date: 2023-08-03T13:24:57.667Z submitter: PRIVATE number: 64cbaaa9f2a2cf00802e5575 tags: [ ] discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/ status: [ discussing || in-progress || complete ] related:

I have a data viewing web app and I routinely want to make several prints of a particular session, e.g., different files, same viewing parameters. I want to be able to automate the print as pdf process. Ideally I could use the FileSystem API and select a folder and fill it with several pdfs that I currently have to save individually through the print dialogue. There are existing javascript pdf writing libraries, but they do not do as good a job as the built-in browser save as pdf functionality. Thanks for your time.


If posted, this will appear at https://webwewant.fyi/wants/64cbaaa9f2a2cf00802e5575/