How do I generate PDFs from Appsmith pages?

Today, it’s not possible to generate PDFs directly from the Appsmith app, but we could use APIs from APITemplate - https://apitemplate.io/ and create a workflow on n8n/Zapier to solve this.

The idea is to create an HTML template on APITemplate.io that’ll accept dynamic data from appsmith using a webhook from n8n/Zapier. After the data is sent and the API is requested, APITemplate will share the response with a downloadable link to the PDF file.

Here’s a detailed guide on how you can achieve this:

1 Like

There is a free (low volume) api for pdfs at https://phantomjscloud.com/. Considering this myself for an appsmith app.

Thanks, @kjustice, for sharing this. Would it be possible for you to share a demo app on how PhantomJsCloud API works with us? I would love to see it and be helpful to the community as well.

I knew about it due to it’s integration with a billing app I use however I’m looking to replace that app with something I write in appsmith. When I figure out the code I’ll be glad to share!

Awesome, @kjustice; looking forward to it. Feel free to reach out if you need any help with Appsmith.

This is exactly what I was looking for! Yesterday I researched about a lot of websites that offered apis for pdf generation as a service but them are very expensive for my project, so I came across Puppeteer and Headless Chrome but the implementation is too technical and not viable to maintain, now I found your post and find this gem. Now I’m going to see how to implement it with appsmith and n8n. Thanks and looking forward if you share how to use it before me, hehe :smiley:

2 Likes