Page break report generator with dynamic data

Hi.

Please, does anyone know any printing service, in which I pass static and dynamic data (texts, repeating groups, images, etc) and it assembles the pdf?

It will be multiple pages and I need to have break that works properly.

I saw that there are some services that do this, has anyone used one or have a solution for this?

Grateful

I use CloudConvert’s HTML to PDF API. You send it a url and a filename and it returns the PDF. You make a page for your PDF and design it how you want.

To handle page breaks it took some time to figure out, but what I found was if I could frame each page perfectly to fit CloudConvert’s page size then I can control what’s on each page. So I found sending a zoom parameter of 0.8, plus making my “pages” on the bubble page 1000x1320 pixels, it fit their PDF perfectly.

For long lists of dynamic data I can go into more detail, but basically it involved splitting up the data into multiple repeating groups, the first group showing item#1-30, next one showing item 31-60, etc. But I can go into more detail if you are doing long page lists

I tried SelectPDF but it’s a little pricey + it was capturing too early and wasn’t showing my complete PDF. CloudConvert has an option to make it wait for an element to appear to signal when to start capturing, so I use a condition on the page “When page is loaded (entire)” then schedule it 2 seconds later to show the element. So Bubble tells their browser to start the capture

2 Likes

Thanks for the answer.

But which plugin is this, could you give me more details?

Thanks

They have API documentation and it’s pretty easy to set up. Install the API Connector plugin made by Bubble and you can send calls to CloudConvert

But what is the correct name of the plugin?

You install the official API connector plugin from Bubble, and you basically make all the API calls yourself to CloudConverts service. Otherwise you would need to try some other plugins, I’ve used Zeroqodes Page to PDF plugin, and it works but a little slow and relies on the client side to wait for it to generate

1 Like

Okay, so there’s no plugin ready, that’s it.

I had searched and hadn’t found it.

What is the call in their api, that I do the conversion from html to pdf?

Could you send a print of your api connector, please?

Grateful

Sorry you’ll have to look a their API documentation if you want to go that route. I’m just saying it’s what I did and so far working well, just needs some setup

This topic was automatically closed after 70 days. New replies are no longer allowed.