EpsilonTal Posted May 13, 2015 Share Posted May 13, 2015 Hello I am trying to make my site able to convert HTML form to a pdf page, that will be saved on-submit on the server.. Is that possible? I tried many options in google and didnt succeed.. I will be glad to get some help with it.. THANKS. Quote Link to comment https://forums.phpfreaks.com/topic/296294-html-form-to-pdf-using-php/ Share on other sites More sharing options...
CroNiX Posted May 13, 2015 Share Posted May 13, 2015 Yes, you'd need a php powered pdf generator. There are many around, like FPDF, TCPDF and a few more main ones (google "php pdf"). It's also not easy to do and you'd have a lot of tweaking to your css to get them to display properly in a pdf document, since PDF's are of a fixed height/width. It won't be as easy as just saying "take the current HTML and put it in a PDF". 1 Quote Link to comment https://forums.phpfreaks.com/topic/296294-html-form-to-pdf-using-php/#findComment-1511760 Share on other sites More sharing options...
Ofarchades Posted May 13, 2015 Share Posted May 13, 2015 If you're able to install it on your server, I find wkhtmltopdf to be a good solution. Quote Link to comment https://forums.phpfreaks.com/topic/296294-html-form-to-pdf-using-php/#findComment-1511761 Share on other sites More sharing options...
giaulk Posted July 5, 2015 Share Posted July 5, 2015 Hi Ofarchades, If you use wkhtmltopdf of commnad server, you need open function excute on php.ini but system management disabled this function. I think that's not a good idea. Quote Link to comment https://forums.phpfreaks.com/topic/296294-html-form-to-pdf-using-php/#findComment-1515614 Share on other sites More sharing options...
Stefany93 Posted July 5, 2015 Share Posted July 5, 2015 As @Cronix said, I find FPDF to be the best - http://www.fpdf.org/ It is very simple and powerful at the same time. Quote Link to comment https://forums.phpfreaks.com/topic/296294-html-form-to-pdf-using-php/#findComment-1515616 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.