PDF Creator server side, for PHP

Hi,
Great having PDF creator - well done on the effort!
Wondering if there are plans to release a server side api for php. This would be a game changer, great to dynamically be able to generate PDF and incorporate them in emails etc with dynamic content.

Are you considering releasing this function?

Many thanks!

1 Like

I too would love this. To be able to structure it all within Server Connect would indeed be a game changer but I suspect this isn't in the pipeline.

I'm now getting more and more proficient and hand-coding it using FPDF and getting great results but it's incredibly timeconsuming. There is a GUI someone made to do this but they've withdrawn it from sale. No idea why as it looks brilliant. I did email them some time ago but never heard back.

I think this could be an excellent project for any javascript experts.

Haven't been maintaining this, but last I checked, it was working with PHP 8.2.x.

1 Like

I had difficulty with this.
@sid its great to hear you are getting good results with FPDF.
I gave up when saw how complex and time consuming.

I really wish Wappler team hear this request! It would be a game changer @George any consideration for this request PHP PDF server side API?

My extension uses MPDF.

Is this extension @sid still supported?

Not really to be honest.
I don't have any active PHP projects, so trying to debug any reported issues would not be highest of priorities.

We had been using this opensource solution for many year now. It is the best when it comes to generating PDF from HTML.
https://wkhtmltopdf.org/

If you are looking for JS based client side solution then this may be of interest.

Just recently because of a clients request we have now started using an online service.

It also has an opensource version that can be self hosted.

HTH

1 Like

Great.. mainly looking at PHP.. is the only option HTML to PDF?
I am happy to go with paid solutions. have you used any APIs that allow you to add say dynamic text within Wappler and then via an API add the text or data to a blank PDF template?

That is exactly what we are doing when using Carbone. We have to build a JSON object and send it to get it to render in the document that we have uploaded on Carbone.

Please check Carbone and its documentation.

Unfortunately it is not done in Wappler or PHP. It is done in another low-code tool.

In case of PHP I personally prefer using ob_start() ... echo ... ob_get_contents() and ob_end_clean() combination to get desired output in HTML.

1 Like