Yeah, that&#x27;s exactly the way I do it.<p>The invoice data from my hledger file and a HTML template together are generated to a HTML invoice. The HTML invoice together with a CSS file are processed to PDF using WeasyPrint [1].<p>[1] <a href="http:&#x2F;&#x2F;weasyprint.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;weasyprint.org&#x2F;</a>