Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ranger_danger
on July 28, 2022
|
parent
|
context
|
favorite
| on:
Generating PDF invoices using Lago
I just use headless chromium to "print" a generated HTML page as a PDF, works great.
simonw
on July 28, 2022
|
next
[–]
My shot-scraper CLI tool has an option that can do exactly that:
https://shot-scraper.datasette.io/en/stable/pdf.html
shot-scraper pdf myfile.html -o output.pdf
a9h74j
on July 29, 2022
|
prev
|
next
[–]
AFAIK uses wkhtmltopdf underneath. Saw a post suggesting Chrome browser developers would prefer not to be offering thin cli support -- presumably for such use cases to use wkhtmltopdf directly.
ranger_danger
on July 30, 2022
|
parent
|
next
[–]
It doesn't, and AFAIK they reversed that decision.
jdenquin
on July 28, 2022
|
prev
|
next
[–]
Lago actually use Gotenberg, it's very nice to manage the headless chromium state without any headache!
Rafsark
on July 28, 2022
|
prev
[–]
Did you face any implementation difficulties with your solution?
rudasn
on July 28, 2022
|
parent
[–]
Not parent, but if you need headers and footers on each printed page you need to make use of tables.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: