shamuraq Posted May 18, 2009 Share Posted May 18, 2009 hi guys... I'm trying to convert my php files into pdf using HTMLtoPDF but i cannot find anyways to manipulate my php into html since the only way php is parsed is through the browser. Any suggestions? Link to comment https://forums.phpfreaks.com/topic/158579-php-htmltopdf/ Share on other sites More sharing options...
Mchl Posted May 18, 2009 Share Posted May 18, 2009 Umm... no. Browser do not parse PHP as it is never send to it. Only HTML is send to browser. Link to comment https://forums.phpfreaks.com/topic/158579-php-htmltopdf/#findComment-836374 Share on other sites More sharing options...
shamuraq Posted May 18, 2009 Author Share Posted May 18, 2009 my bad... so any suggestions? A friend told me i need to convert the whole php file into a string in another file. Its still unclear for me.... Link to comment https://forums.phpfreaks.com/topic/158579-php-htmltopdf/#findComment-836409 Share on other sites More sharing options...
nadeemshafi9 Posted May 18, 2009 Share Posted May 18, 2009 my bad... so any suggestions? A friend told me i need to convert the whole php file into a string in another file. Its still unclear for me.... you dont understand client server communications or you dont know the difference between php and javascript html, basicaly you create javascript and html using php on the server and then that is what the user see's because the result is what gets sent. So if you dont undertsand that it will be dificult for you to create a pdf. Link to comment https://forums.phpfreaks.com/topic/158579-php-htmltopdf/#findComment-836419 Share on other sites More sharing options...
Mchl Posted May 18, 2009 Share Posted May 18, 2009 an you post a link where we can read about html2pdf? Link to comment https://forums.phpfreaks.com/topic/158579-php-htmltopdf/#findComment-836457 Share on other sites More sharing options...
shamuraq Posted May 19, 2009 Author Share Posted May 19, 2009 http://html2pdf.seven49.net/Web/ i guess i'll just stick to print from file menu and choose PDF. This is way off my league.. sigh... Link to comment https://forums.phpfreaks.com/topic/158579-php-htmltopdf/#findComment-836963 Share on other sites More sharing options...
DarkSuperHero Posted May 19, 2009 Share Posted May 19, 2009 are you trying to convert your PHP OUTPUT to a PDF ? or trying to conver your PHP source code to a PDF ? if the first one than you might want to look into .... http://www.fpdf.org/ Link to comment https://forums.phpfreaks.com/topic/158579-php-htmltopdf/#findComment-836977 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.