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 contact@mindforapps.com
We appreciate your reviews and suggestions.
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)
Hi, I’ve read through the documentation and although I’m sure if someone showed me how to do this, I’d be amazed at how simple it actually is, but as it stands I’m having a hard time understanding. Is it possible to very simply take the ID Attribute of an group/element and print that as PDF? It’s honestly a very simple use case and I’m sure this plugin is very capable of much more complexity, but as it stands right now my use case just calls for this simple function. Thanks,
Well, in fact, the plugin store has a large selection of plugins that can cope with this simple task.
Our plugin is designed for more complex use cases.
In simple terms, you create a template for a future PDF document once, and then you can generate PDF documents by dynamically changing (substituting) data into the previously created template. Thus, it allows you to create PDF documents both normally and without user interaction using backand. Those. send mailings, invoices, invitations, etc., etc.
Yes, I understand that your plugin is meant for much more complex things. I’ve tried many plugins from the store. Some don’t work well for my use case. The 1 I’ve found to work well is free and very simple and lacks some of the controls that your plugin offers. So I was just wondering if there was a way to easily use it for a simple element use case. I had purchased it many months ago so I own it but hadnt gotten around to playing with it. In any case, I understand, its likely overkill for the job.
Hi, I have this message :" plugin action create pdf action error when parsing the response : expexted a string but got a object (original data:{“message”:“Not found: fileupload”})" when I’m using the create_pdf_action from my mobile phone. When I’m doing the same action with the same button with my laptotp everything is ok.
Any suggestions to fix this ?
Thanks
The fact is that the “/fileupload” endpoint is used to upload files to the server. Roughly speaking, this is a folder in your application on the server.
“homeurl/fileupload”
And when you specify the URL of a specific page: https://pdf-creator-builder.bubbleapps.io/version-test/my_page, the server tries to find “/fileupload” at this URL, but does not find anything and returns an error.
Please make sure that you have the correct url for your application in the “homeurl” field.
Hi,
Thanks for your last response. It working
But now I have a issue with one document when I’m trying to create the pdf i have tis message : “octal escape sequences are not allowed”
Hello!
I just researched this issue.
The fact is that the plugin has a structure in which octal sequences are prohibited. But you (most likely) use a forward slash in the text, which looks something like this: \2014 or \AB. And the plugin perceives this as octal code.
At the moment this can only be fixed using shielding. That is, add another slash to the slash, something like this \\2014 \\AB
Unfortunately, at the moment this is the only way, but in the future I will think about how to automate this.