Hacker News new | ask | show | jobs
by WhitneyLand 1424 days ago
Is a PDF invoice typically expected to be generated every time you’re billed, or only when someone clicks “View PDF Invoice”?

It seems like the % of customers that care to have PDF over an HTML page would greatly affect the need for scalability.

What is this percentage, I don’t know. I wouldn’t have guessed high.

Anecdotally even when I’ve preferred a PDF invoice, it’s been on a case by case basis.

2 comments

In France and in most countries in EU, it's mandatory to have a PDF that follows very pecific guidelines. Can't say for sure for every country though!
The information required on a EU invoice is detailed by Article 226, Section 4 (Content of invoices) of Council Directive 2006/112/EC on the common system of VAT: https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=OJ:...
The PDF is triggered when it’s requested from the UI or from the API. The job is asynchrone, so it’s returned when it’s ready (generally in milliseconds). This prevents performance issues