I am building an automated billing system for my small business and need to turn hundreds of Word templates into PDFs every month. The open-source library I tried keeps breaking the table columns, so does anyone know a solid PDF conversion API that handles invoice formatting well?
That’s annoying, especially with invoices where a shifted column can make the whole thing look wrong. I’ve had decent results using LibreOffice in headless mode for Word templates, provided the templates use fixed table widths and embedded fonts. For a hosted API, I’d trial a couple with your most complicated invoices first, including VAT tables and page breaks, before wiring one into the billing run.
Had the same headache with our field reports last month. Tables kept wrapping wrong when we converted from Word. I am not an expert on APIs, so I just used Adobe PDF services for the batch jobs and it kept the table layout intact. Might be worth a look if your volume is high.
I can’t point you to an API I’ve used, but what fixed my invoice tables was simplifying the layout in Word and using Word’s own Save as PDF. For hundreds a month, I’d batch it with Word and test 5 templates first.
I am no tech expert with APIs, but I use PDFcap for all my contracting estimates and change orders. It keeps all the formatting and tables exactly how they look in Word. You should check out pdfcap.com to see if they offer an API for your billing system, because their regular conversion is spot on. What programme are you using to build it?