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.
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();
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.
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.
Some changes have been made to the plugin code.
The βimageToBase64β module has been finalized and improved.
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)