📄️ Invoice (cURL)
This guide demonstrates how to automate the generation of invoices using the reportgen API. You will create a custom HTML template with dynamic data, submit it to the API, and retrieve the resulting PDF.
📄️ Expenses Report (cURL)
This example demonstrates how to generate an expenses report in PDF format using the GoTempl engine. The report will contain a simple table of expenses, including item names, categories, and amounts. This example uses the /generate-pdf-sync endpoint, which returns the PDF directly, and we will store the result as a file.
📄️ Employee Report (Go)
This example demonstrates how to generate an employee report asynchronously using the Handlebars engine. The report will display a list of employees, their roles, and contact info. We’ll use Tailwind CSS for layout and FontAwesome for icons, and the API call will be made using Go.
📄️ Order confirmation (Javascript)
This example demonstrates how to generate a simple, static confirmation page in PDF format using the Raw engine. The report will be generated synchronously using the /generate-pdf-sync endpoint, and we’ll use Fetch API in JavaScript.
📄️ Complex Sales Report (Javascript)
This example demonstrates how to generate a complex sales report using the GoTempl engine. The report contains sales data, a dynamic chart using Chart.js, conditionals to display warnings, and loops to generate tables. The layout is styled using Tailwind CSS. This report is generated synchronously via the /generate-pdf-sync endpoint.
📄️ CSS vs API PDF Controls (Javascript)
This example shows how CSS and API PDF options interact when you use the Raw engine.