If you are very familiar with using Google Docs to create documents (for example using Make or Zapier) you will really like this guide, because generate PDF plugin makes the work easier and will save you a lot of time
1. Prepare your template in Google Docs
In your template, we are going to use braces for example: {{company}} to replace later, with the value you pass to it.
Here is an example of a template, where the words that are in braces are the ones that will be replaced using the generate PDF plugin
2. Download the HTML template
In Google Docs we can download the Document as HTML, let's see how to do it.
Go to File
Download
Web Page (.html, zipped)
3. Upload the images you have in your HTML to Bubble
If your template has images, be sure to upload them to Bubble File Manager, then just replace the source of the image with the link uploaded in Bubble
Note: If there’s a image that was not uploaded to bubble and replaced in the HTML, maybe that may cause the document not to be generated correctly. Replace all src=”image1.png” in your template
4. Copy the HTML
Open the html file and click on View Page Source
Select all, and copy
5. Set up generatePDF plugin
Now in the plugin, paste the html you copied in the plugin HTML section, I recommend use Arbitrary text to do that.
Write your params without braces
Test it
Done!
Want to print your doc? This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (