Services Plugins FAQs

Looking for solution for templates to pdf

Wondering if ZQ has a plugin or block that could do this:

Create a document from a template that fills data from my database - user can also add/change their own data on the template then the document could be exported as a pdf.

Essentially, our users generate a report for each insurance claim - so once a claim “thing” is created, a template report should be activated that fills in some data from the database and also allows users to work with the document before sending it as a pdf. Looking forward to hearing back!

Hello, @29.sherrycooper. Thanks for reaching out.

Please accept my apologies for the late reply :pray:

Well, the “create a document from the template” part should be done on the Bubble - there is no such plugin, I’m afraid. But it should not be difficult to build the document template.

You simply need to design the document page, fill it with the template data, and use dynamic values for the data entries, taken from your database.

To make it possible to edit the data on the template document, you can use the input/multiline input elements (the Initial content field) instead of simple text elements, for example.

As for the PDF generator plugin - I can recommend you use our Page to PDF plugin :

https://zeroqode.com/plugin/bubble-page-to-pdf-converter-1528878356625x811358995289735200

The plugin usage is quite simple. After your document template group will be created, you need to assign the ID to it. This ID will help the plugin understand what element on your page you want to convert to PDF. Then, place the plugin element on the page, add the action “ConverttoPDF” and indicate there the group ID, group size (w/h), and other details.

The exemplary setup and how to use the plugin you can find on the plugin demo editor page:

I hope it helps! Happy holidays :confetti_ball:
Regards,