SelectPDF
SelectPDF allows you to generate PDFs for your invoices, letters, and other documents.
This workflow event allows you to dynamically generate a PDF doc based on a page in your application.
The name of the generated pdf file.
The type of page you’d like to generate a PDF from. Choose between an external page within your own application, or an external page from a third-party source.
The page within your application that you’ll generate a PDF from.
The values you’ll display on the target page where a PDF will be generated.
The URL of the external page you’d like to generate a PDF from.
Select the preferred dimensions of the PDF page.
The orientation of the final PDF document.
Add a page margin around your target page.
Prevent images from being split across pages.
The minimum amount of time required to generate a PDF document.
A User of the app to run the page as
Add privacy settings to your final PDF file.
Define what rendering engine you’d like to generate your PDF document.
After installing the SelectPDF plugin, you’ll be required to add your own API keys to begin generating data. You can request your own API key on the SelectPDF developer portal here.
After generating your API key, copy the value into both the ‘API key’ & ‘API key - dev’ field of your Bubble plugin.
After configuring your API keys, you can now call the ‘Generate PDF from a web page’ event within your workflow editor.
As an example, if you’d like to generate an invoice within your application, you’d first need to create a page within your application that would allow you to display its dynamic content.
You could achieve this by creating an ‘invoice’ page, setting the page’s type of content to be an ‘invoice’ data type.
Now on this page, map out the layout of your invoice using dynamic elements of the ‘current page invoice’.
Now, whenever you generate an invoice on a separate page, you could call your ‘generate PDF from a web page’ event.
Within this workflow step, you’ll need to identify what page of your application you’d like to generate a PDF for.
You would also need to identify what dynamic data you’d like to send to this page.
In a workflow where you’ve just generated a new invoice, you could choose to generate a PDF of this invoice page, sending through the value of the thing you’ve just created.
When generating the PDF, it’s also possible to update the name, page size, and orientation of the final file.
Once this PDF file has been generated, you can choose to store this in your database using another workflow step, or even send it within an email as an attached file.
When configuring your ‘generate PDF’ workflow event, tick the ‘keep images together’ configuration.
Last modified 2yr ago