Introduction
Bubble is the most powerful no-code platform, empowering entrepreneurs to build production-ready web apps. Bubble lets you create interactive, multi-user apps for desktop and mobile web browsers, including all the features you need to build a site like Facebook or Airbnb. Build out logic and manage a database with our intuitive, fully customizable platform.
You can use PDF Generator API Bubble Plugin to quickly generate PDF documents using the data you already have in your Bubble application (e.g. store orders, database records etc.). You can find the example application built with Bubble and PDF Generator API Plugin here.
Resources
Use-cases
Here are some use-cases that you might have in your application. If you have a use-case that we have not covered, please contact us support@pdfgeneratorapi.com
Open generated document or editor in a new tab
The ability to open links in a new tab is essential, and to achieve this, you can use the Toolbox plugin, which allows you to run Javascript and take advantage of window.open function.
In our example application, we use the Tooltbox Run javascript action after PDF API - Generate Document command to open the generated document on a new page. You can do the same with the PDF API - Open Editor Action to open the editor in a new tab.
View full tutorial with screenshots and examples
Use Bubble Database object as JSON data
It is possible to use your Bubble Database object (e.g. User, Company, Order etc.) as the data source for the generated document. If you want to send a Bubble Database object, you can use jsonNest plugin to convert your Database object to JSON automatically. The jsonNest plugin supports deeply nested objects and allows you to configure field names. Please see their documentation for more information.
View full tutorial with screenshots and examples
Send PDF document via email
Most of the transactional email APIs (e.g SendGrid, Mailchimp) allow you to add attachments to your email as base64 encoded content. You can use the PDF API - Generate Document Action with Output type set to base64 to attach the generated PDF file to an email.
You could use the Bubble SendGrid plugin to easily create a Workflow that generates PDF from your database object and sends an email with an attachment.
View full tutorial with screenshots and examples