[New Feature] PDF Generation

To have a correct URL, since the result is a file, use Result of step 1 (Generate PDF from…)'s URL

1 Like

Yes, the AWS URL are stored forever.

1 Like

I followed the above process to generate the PDF however I am not able to see any PDFs getting generated/ I am unable to locate the PDF in my system.

Am I missing anything?

App Link: https://bubble.io/page?type=page&name=purchasing_page&id=mytestingapp&tab=tabs-1

Please Help

The action returns a link, if you don’t save it you won’t be able to use it indeed…

3 Likes

Thank you.

I now saved the link and was trying to open it… but it says file was not found :confused:

here is the url link

3 Likes

Awesome …
Thanks @nicolas.daprigny

I’ve been trying to find ways of using selectPDF to email a client with an invoice. I have figured out how to use select PDF and have saved the url that it returns.

In terms of what options there are for emailing I would ideally like to have an image of the pdf in the email, but a link to the image would work just as well.

For the image I have been trying to use the BBCode format of [ img]selectPDF’url[/img ]. I have also tried to save the url as an image file first, and then put the image result inbetween the brackets like so: [ img]savedimage[/img ].

Neither of these seem to work. I find it somewhat surprising because I can use the selectPDF url as a source to display images in bubble, but it won’t work in an email.

I also tried to use an image uploader with its initial content to be either set as the saved image or the selectPDF url. The good news is that it will display the image correctly in Bubble, but when I try to send an email with the value of the image uploader in [img] tags it still wont display in the email.

This results with me trying to then display the image as a link in the email. Simply using the [ url]selectPDFurl[/url ] tag in the email. Notice I had to preface the url with http:// as it wouldnt work otherwise. The result of clicking the link is not to view the pdf but it will open a browser and download the pdf and the browser screen is empty. Im hoping my clients will be savvy enough to know that the link opens a file that they would then have to click on to open. If it were an attachment it would be much more easy for my clients to understand what is happening.

After all of this it would easier for me to just avoid the selectPDF process altogether and email them a link to a bubble page which would display the information they would be seeking. Or for me to go to the page, print a pdf in the browser and then send it to them as an attachment in an email.

Anywho, I know the [url] and [img] tags work with other bubble elements that are text or image elements in Bubble. I just cant figure out how to get the pdf to become an image that I can display in an email.

1 Like

Hi @hvac_designer,

I´ve the same situation and my goal will be to store the PDF somewhere so I can retrieve that PDF file in the email sent from Bubble but I don´t think it´s possible right now.

It would be so nice to have this.

Thanks for your explanation.

I’m using the plugin but am continually getting “SelectPDF failed - Conversion Error. Request was: …”. I’ve now played around with numerous page sizes, etc. and nothing seems to work. (I also have the Demo license key installed).

Has anyone encountered a similar problem?

Did this work for you before. Also doing some tests, to try to figure why stopped working on my application too

Did a isolated test and it appears working - https://bubble.io/page?name=index&id=sendpdftest4&tab=tabs-3

The issue for me, must be something else. It is in a API workflow - let me check

Yep - after some tests seems API workflow was broke for me for SelectPDF.

Reported via Bug

Getting back to your point @supernaturally - did you manage to make it work normally - i.e normal workflow

No, I haven’t been able to get the plugin to work at all. It looks like I’m going to have resort to Postman to see what’s going on. I’ll update soon.

Update: So I figured out that it wasn’t working because my app required a username and password to login and view. If you disable that feature in Bubble, it works…if you enable it, it won’t work until you remove the username/password from your private app.

I get the same error but it has nothing to do with the username/password.

I have spent hours trying to get the print page to display my template so that it prints correctly. It is a sticker sheet and needs to be pasted very accurate. From the second page on, the group either creeps up or down according to the element height or the x value.

At one point I decided to create multiple RG’s that would hold items ‘until 11’, the other group holds items 'from 11 until 21.

This worked fine until I tried the third group. (and I need a lot more)

The error is very general and doesn’t say anything other than what it tried to do and it failed. If it was a timeout error I could point to the fact that the max load time should be increased (it is set to 120 seconds now) but the workflow action doesn’t take more than 30 seconds currently.

Will try again tomorrow, see if I can fix it. :frowning:

Yeah, SelectPDF is a really scrappy tool. I have about 7 repeating groups that I use as well to generate multiple pages. The only downside to this solution is that the PDF still generates blank pages when groups are hidden because the page height cannot be changed.

It’s not a perfect solution, but it works, nonetheless.

Hi @hvac_designer, Regarding [quote=“hvac_designer, post:28, topic:1850”]
Neither of these seem to work. I find it somewhat surprising because I can use the selectPDF url as a source to display images in bubble, but it won’t work in an email.

I also tried to use an image uploader with its initial content to be either set as the saved image or the selectPDF url. The good news is that it will display the image correctly in Bubble, but when I try to send an email with the value of the image uploader in [img] tags it still wont display in the email.
[/quote]

The problem I’m facing is when I use the pdf saved url and display it as an image, it’s only producing the first page of the PDF. Did you also find this problem and is there a workaround?

Thanks.
JD

Hey @jasondiehl07 ,

It looks like the SelectPDF plug-in does create multipage pdfs. I’ve made a public app to test with if you like.

There is a checkbox when the pdf is generated as to keep the ‘images together’ or not but it doesn’t seem to make a difference if the pdf is multipage or not.

You can see the editor here: https://bubble.io/page?type=page&name=longpagepdf&id=pdf-generation-bubbleguy&tab=tabs-1

1 Like