Live data from Hacker News

Generating PDF invoices using Lago

getlago.com

21–30 of 56 posts

Re: Generating PDF invoices using Lago

#21

Generating a custom PDF is just such a pain. You don't know it before you tried to do it. I've seen Anvil (a YC co) is building a product dedicated to this challenge, check it out!

> Generating a custom PDF is just such a pain. You don't know it before you tried to do it.

I never had any problem generating PDFs by using Ghostscript.

Re: Generating PDF invoices using Lago

#23
Cool idea, I can see how this would be useful once you're dealing with more than a few invoices per month. For those like me that do indeed only send out a few a month, I've found the Numbers app on Mac to have a very nice invoice template that you can customize, fill out, and generate a professional-looking invoice from.

Re: Generating PDF invoices using Lago

#24
Not sure this actually solves a real problem. A lot of the questions/problems mentioned in the article are already things being addressed by any service worth using.

At the end of the day, you just need to generate a PDF from a template. The template is a solved problem. Invoices generally do not have that huge amount of variability in terms of layout.

I have been using microinvoice (https://github.com/baptistejamin/node-microinvoice) for the past couple of months and it's been a breeze. It uses PDFKit underneathe and has been working really well. I don't think PDF generation is a task that should require using Chromium. There's pandoc & other libraries that can easily do this at a much lower cost to both resources and finance.

The blog posts sounds like its solving a problem that doesn't exist. Generating invoices _at scale_? Is scalibility really a problem here? Generating a PDF takes a couple of milliseconds. Rent a $5 VPS and it can generate all sorts of PDFs for you without an issue for a long time before you'd start worrying about scalability. Heck this sort of thing doesn't even need to be a dedicated service.

Not to downplay anyone's hard work but Lago just doesn't sound like it's solving a real problem.

Re: Generating PDF invoices using Lago

#26
post #19

Earlier quoted context omitted.

I just use headless chromium to "print" a generated HTML page as a PDF, works great.

Did you face any implementation difficulties with your solution?

Not parent, but if you need headers and footers on each printed page you need to make use of tables.

Re: Generating PDF invoices using Lago

#28

This isn't Open-source. This is a (currently) publicly accessible API.

I only did a cursory look but it looks like the backend for the API is on their Github licensed under AFGL. https://github.com/getlago/lago-api/

It's AGPLv3 licensed indeed!

Re: Generating PDF invoices using Lago

#30

Earlier quoted context omitted.

What do you mean by "backend" ?

Backend: Software application(s) that run on the server that provide the service.

Thank you so much for the definition, to clarify: as the API is already open source, see above comments, I was asking what else was requested / missing.
Post reply on HN