1

I've just set up a website with much help from the Stack forums! I have customers who buy items (through the PayPal interface that takes care of the credit card payments).

I have made invoices in LaTex, which I edit manually. The next step I want to take, is to learn how to get my website to pass the purchase information into my LaTex document so that the invoice is automatically generated, and automatically send a copy to the customer.

Is there a LaTex API that would allow me to do something like this?

1 Answers1

0

Try DynamicDocs API by ADVICEment. DynamicDocs is JSON to PDF API, which uses LaTeX to compile PDFs. It lets you write LaTeX templates and merge JSON data into them. It also provides a library of JSON to PDF templates.

Since you already have a tex file you want to use, you can use Tex to PDF with pdfLaTeX template, with which you can pass your tex file as JSON payload and receive back the compiled pdf. For examples of how to call DynamicDocs API, visit the DynamicDocs Public Collection on the postman API network.

Disclaimer: I am involved in developing DynamicDocs API.

Igrod
  • 41