πŸš€[NEW PLUGIN] PDF creator + template builder

Hello fellow Bubblers!
We are glad to announce our small addition to the plugin collection:

PDF creator + template builder
Allows you to automatically create a document template (invoices, invitations, announcements, mailings, tickets, reports, certificates. etc.) from a page (or group) created by the regular tools of the Bubble editor. And then generate PDFs with dynamic data on the server or client side according to a predefined template.

On the client side: allows using a template with dynamic data to generate a PDF document, upload it to the server, get a link to the downloaded file and / or download the generated PDF file to the client computer.
On the server side: allows using a template with connected dynamic data without user intervention (for example, on a schedule) to generate a PDF document, upload it to the server, get a link to the uploaded file. For example, send invoices every month on a schedule. Or send invitations to users for a specific event. Etc.

The set includes elements:

  • PDF_creator - create PDF on the client side.
  • Create_PDF_action - create a PDF on the server side.
    Auxiliary elements:
  • Create_template - from a regular page created in Bubble, creates a template code for use in PDF_creator and Create_PDF_action.
  • PDF_code_editor - allows you to easily and visually edit (if necessary) the template code created by Create_template.

DEMO

jspdf_doc

jspdf_code + sandbox

Plugin page:

If you have questions, reach out to us at [email protected]
We appreciate your reviews and suggestions.

Cheers
Jay | Mindforapps

1 Like

Hey @MindForApps

Does it work with multiple pages?

Hello!

In order to work with multiple pages, you need to create a template for each page separately. Generate code for each page separately.
Those. get a separate block of code for each page.

And then just combine these blocks using the line: doc.addPage();

How it works can be seen on our demo page:

An example is on the tab: Three pages
.

.

The examples on the demo pages are interactive. And you can try to change something yourself or paste it in the editor (left side with code) and you can immediately see the result (finished PDF) on the right.

In fact, everything is not so difficult.

If you have any questions please contact us and we will try to help you right away.

Thanks.
Good luck.

1 Like

Hello @MindForApps ,

But the multiple page is not static, I mean, it depends on how many line items are on the invoice.

Also, will it be possible to print the top section on every page?

Show the number of pages?

Is it possible?

Thanks a lot.

Hey!

Unfortunately, this cannot be done right now.

The plugin is designed to create a static template. That is, you get the template code and then the data is dynamically inserted into this code. And then generate a PDF.

You can create codes for several separate pages and then combine them into one common code. But still, this will allow you to change the dynamic data in the template, but not the size and layout of the elements.

1 Like

Hey!

Update version 1.2.0

Some changes have been made to the plugin code.
The β€œimageToBase64” module has been finalized and improved.
Image 24

Now it is possible to transform images directly before creating PDF. You can select image width and height, also you can select fit (contain,cover,fill,inside,outside) and position (centre,top,right,bottom,left)


.
.
.

More details can be found in the documentation:
in the section β€œDynamic connection of images.”
Image 25

Image 26

.
.
.

You can also see a small demo of this function:

.

Good luck to all.