Hacker News new | ask | show | jobs
by httgp 950 days ago
Have you considered Playwright? It offers very straightforward APIs to do exactly this.
1 comments

This is the way. Firefox may not have a CLI arg for saving PDFs, but they expose it through DevTools API and it can be automated with Playwright, Selenium (or plain http requests) etc