I have a page with potentially a lot of images that needs to be printed with the selectPDF service. However, it does not wait until all the content has been loading, so I get only part of the content shown in the pdf.
Could this be exposed in the Bubble plugin? Then I can set the value according to how much content is being rendered. (Not the optimal solution - but I think it would work OK for us).
@emmanuel, I know you just added another option to the plugin, so I hope it will not be too much work. It would really make the difference between being able to use this integration or not…
I already have the data in a page thing. On the page, there are a lot of images that need to load, and they are stored as a list of images on the page thing. But it still doesn’t work well. I have sent a PM with details on how to reproduce.
@emmanuel I have the same issue. I have to create a sticker sheet with QR codes which are stored in the sticker thing as images. I already cut up all the stickers into 4 different pages but the printing is very unreliable. Over 4 pages, the QR codes don’t load fast enough but just scanning the sticker sheets randomly I notice some images missing too.
Adding the option of setting a min load time manually should fix this. Since this is the only pdf creator option at the moment and we already commit to paying $20 a month for the service, it would be great if this could be exposed on the bubble side!
Not sure if it fixes this specific problem but https://cloudconvert.com/ has a web->pdf option, a free daily quota and I’ve got it working pretty easily with the API Connector.
Thanks Andrew for the pointer to this service. Emmanuel just wrote to me that SelectPDF is unreliable and Bubble doesn’t want to put more effort into improving this plugin. So basically my next option is to use the API Connector to some other service. I will give it a try and post my lessons learned back.
Cool, the API documentation of the CC website is little messy, but I guessed my way through in the end. If you have any problems with it, give me a shout and I’ll try to help.
I was going to publish it as a plugin for everyone, but I never got around to tidying up the API calls.
I had the same issue but I remember getting it work. I’ll dig out some screenshots for you both in a couple of hours.
I remember the stumbling block being what to do once I had the unique download link from CC. I don’t remember if I ever worked out how to (or if it’s possible) to get Bubble to download a file from an external URL and save to S3 - I remember not trying to hard to find a solution though as the PDF requirement got dropped from the project in the end.
So in your workflow, take the returned URL and feed it into this next call as the ‘hosturl’
‘file’ should be the URL of the page you need to convert to PDF
‘callback’ is the endpoint CC will ping once the conversion is completed/failed
‘save’ - yes if you want to save file to CC account, otherwise, you need to download immediately
‘wait’ - can’t remember exactly, but it didn’t work if this wasn’t set to true
Finally, once the conversion is complete, CC will ping that callback endpoint with some other data, and most importantly, a direct download link to the file.
I never got round to it, but I guess you could create an API workflow that captures that direct download link and does something with it. What I do know is that the download link is only active for about 24 hours, so best grab it and save it somewhere.
But does it really works? I´ve just tried exporting an invoice to PDF reducing the min_load_time from 5 seconds to 2 seconds and I´m always getting the same time when exporting it. I´ve checked and it takes about 11 seconds always to export the PDF whether you reduce or increment this min_load_time.
It works for me. But i need to increase the time in order to make sure all images are loaded on the page. increased to 10 seconds and it seemed enough.
I will now have to combine all four print pages into one again and try again, finding the optimum load time.