What package can i use to convert html to pdf or image?

Published 4 months ago by Crazylife

I tried dompdf and phantom magick, all gaves me error. For dompdf, return me class dompdf.wrapper doesnt exist, while phantom magick return the binary error. i am using laravel 5.3 with php 5.6, is there any package i can use to convert html to pdf or image? thanks.

pardeepkumar

https://github.com/barryvdh/laravel-dompdf

this package is useful and easy to convert

Crazylife

@pardeepkumar I have no idea why i am getting class dompdf.wrapper doesnt exist error.

pardeepkumar

okey . i think you follow this article and use in your project

https://www.c-sharpcorner.com/blogs/how-to-convert-html-with-css-to-pdf-using-javascript

Crazylife

@pardeepkumar Actually i want to do it at backend by convert the view into image or pdf instead of using jquery etc to do it.

Nash
Nash
4 months ago (72,030 XP)

Please sign in or create an account to participate in this conversation.