🧪 Launching PDF Potion: Solving the PDF Problem

Hey @alexcooney5 , I send you an email few hours ago, but I’m really confused about the behavior of the plugin. It worked all well until this morning. Now I get blank pages downloads and I cannot figure out why. I even upgraded the subscription plan and that didn’t solve my issue… please help

1 Like

Hi @marina, thanks for using PDF Potion and sorry for this issue. I’ve seen your email and will get back to you shortly :slightly_smiling_face:

@alexcooney5 great plugin by the way matey! Couple of things

The issue for me is the RG data cuts close to the header/footer boundary… and if i add margins this throws out the rest of the document.

Example closeness in RG scenario:

Backend WF settings:

Top of cover page when i introduce a margin:

Not sure how to resolve this one… my thoughts were to create two separate pdfs for both the cover and main content with your plugin (with margins in the right places) then merge them with another plugin (PDF Merger [FREE; no external APIs] Plugin | Bubble) however, be easier if it was native, or an option to set separate header, or pages styles for covers, inserts, etc?

1 Like

Hi @stuart4, thanks for the kind words!

The solution to this is to:

  • Add a top/bottom margin so that there’s a bit of room between the RG data and the header/footer
  • Add the ID attribute ā€˜remove-margin’ to an element within the main group on the cover page (or any other page where you don’t want a margin).

This will remove the top/bottom margin from that page only.

This is kind of a hidden feature that I should document more throughly, but you for now you can see me use it at 49:58 to 53:20 of this video :slight_smile:

Let me know if that helps!

Also, in some of the earlier PDF Potion videos I use the ā€˜Create PDF’ action in a backend workflow. Just wanted to note that you can also now use it in a front-end workflow if it’s easier.

That makes perfect sense, ill give it a crack.
Thanks

1 Like

Perfect. Let me know how you get on!

hey @alexcooney5 when i add the ā€˜remove-margin’ to the parent on one of the leader pages… this works to remove the preceding margin from the BE WF settings, however now seems to remove the margin from the RG. ( i tested the other way as well).


alt:

Hi @stuart4, apologies if this is in the screenshots, but what element did you put the ā€˜remove-margin’ ID attribute on?

I find it works best if you put it on a text element in a group on the cover page (or whatever page you’re removing the margins from).

If you can’t get it to work as expected, feel free to shoot me a private message and I can take a look at your editor setup or jump on a call to go through it with you :slight_smile:

1 Like

Thanks @alexcooney5 it’s almost midnight (Sydney) here, so i;ll approach with fresh eyes in the morning and then come back to you :slight_smile: and Ive just hit my limit testing … so about time for bed I think. But thank you for the awesome prompt response.

1 Like

Convert Bubble page to PDF - video tutorial
We just released a new video tutorial on converting a page of your app to a PDF with PDF Potion:

Any questions just let me know :slight_smile:

@alexcooney5 Hi!
I’m facing a problem with overlaping from some elements
image
Have you seen a problem like that before?
The page loads perfectly but the pdf sometimes overlaps elements. Can you help me?

How to create a PDF in your Bubble app
Recently put together a detailed written guide on how you can create PDFs in your Bubble app with PDF Potion:

Any questions let me know :slight_smile:

How to add an invoice generator to your Bubble app
We released a new written guide on the PDF Potion Blog - how to add an invoice generator to your Bubble app. Gives a very detailed guide on you can allow users to generate invoices from your app.

Might be useful for some people! :slight_smile:

How to create a certificate generator in your Bubble app
Just released a detailed written guide on how to create a certificate generator with PDF Potion:

It covers how to:

  • Design certificates in your app
  • Generate PDFs of the certs
  • Provider users with a selection of certificate templates they can choose from

Any questions just let me know :slight_smile:

New video tutorial - How to create a certificate generator
We now have a video tutorial to go along with our detailed written guide creating a certificate generator in a Bubble app!

Free Template - Certificate Generator
Bubble have just approved our Certificate Generator template! This template uses PDF Potion to allow you to create custom certs.

2024-11-26 16.56.55

Useful links

Any questions just let me know :slight_smile:

I would just like to comment saying that I found PDF Potion to be very easy to set up and Alex is as always very helpful if you get stuck. It’s the only plugin that effectively handles privacy-rule sensitive / backend PDF generation and there’s minimal config required (pretty plug and play - your PDF will likely look fine without much customisation, but you have the options if necessary).

2 Likes

Thanks @georgecollier! Really appreciate the kind feedback :slight_smile:

Authenticating the backend workflow - January-25 update
You can now enable authentication on the backend workflow you’re using to process PDFs created by PDF Potion.

Follow the steps below or see this doc for instructions on how to implement this.

Please note: This feature was originally released in version 1.11.0 of the PDF Potion plugin. However, it is since been brought to my attention that the method used in that version of the plugin was not secure. This issue has been fixed in version 1.12.0. Please use the latest version of the plugin and NOT version 1.11.0.

Instructions

  1. Leave the ā€˜This workflow can be run without authentication’ option on the backend workflow unchecked

This means that it will only be possible to use this backend workflow with the correct authentication.

  1. Generate an API Token in your Bubble editor

You can generate an API Token in the Settings → API section of your editor.

  1. Add the API Token to the ā€˜API Token (for authenticating backend workflows)’ inputs

Navigate to Plugins → PDF Potion and add your API Token to both the dev. and live versions of the ā€˜API Token (for authenticating backend workflows)’ inputs:

(yes I have deleted this API token since the screenshot was taken :slightly_smiling_face:)

It will now be possible for PDF Potion to access the backend workflow used for processing the PDFs.

Any questions just let me know!

Alex

1 Like