FreeHostia Forums http://forum.freehostia.com/ |
|
Re: best programs to batch convert URLs or HTML files to PDF http://forum.freehostia.com/viewtopic.php?f=8&t=66264 |
Page 1 of 1 |
Author: | Rajesh350 [ Fri Jun 10, 2022 12:18 pm ] |
Post subject: | Re: best programs to batch convert URLs or HTML files to PDF |
You can just print to PDF from a headless copy of Chromium. The first two lines install it from npm, but you can also just use your regular copy of Chrome. npm install chromium CHROME_PATH="$(pwd)/node_modules/chromium omegle.2yu.co /lib/chromium/chrome-linux/chrome" $CHROME_PATH --headless --no-sandbox --disable-gpu --disable-web-security --run-all-compositor-stages-before-draw --virtual-time-budget=5000 --font-render-hinting=none --print-to-pdf=OUTPUT.pdf https://example.com Instead of https:// for your URL, you can also omeglz do file:/// for a local HTML file. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |