Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
gotenberg
A developer-friendly API for converting numerous document formats into PDF files, and more!
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I have used https://pptr.dev/ in one of my Projects. I have created the page via HTML/CSS and used Puppeter to convert this page in a PDF. The nice thing here is that you can use HTML and CSS and do not need to use coordinates to place content on the page, which is in some alternatives needed
Pandoc is a possible middle man to convert most types of documents into other types of documents, including PDF. Although I suspect it could use LaTeX here as an intermediary language. This might be a bit much, I'd suggest trying other solutions first and mark Pandoc down as your plan C.
If this is a concern for you, I suggest you look at projects like pdfkit, they allow you to compose the content of the pdf directly, without using another format (html) has an intermediate layer.
I asked the very same question a few months ago and someone suggested https://gotenberg.dev/. We've been using it ever since with absolutely no issues.
See if React PDF library solves your problem.