RynMan Posted July 17, 2009 Share Posted July 17, 2009 Hey guys I'd basically like the ability, for when a user clicks a button, for the page to be saved as a PDF file. Almost as if they had printed-to-pdf. Is this possible? If so, how can it be done? Many thanks! Link to comment https://forums.phpfreaks.com/topic/166315-creating-a-pdf-from-the-html-page/ Share on other sites More sharing options...
Amtran Posted July 17, 2009 Share Posted July 17, 2009 Nope, it can't be done with JavaScript or HTML, or anything like that. Your users would have to convert it with an HTML to PDF converter they can download. Link to comment https://forums.phpfreaks.com/topic/166315-creating-a-pdf-from-the-html-page/#findComment-877215 Share on other sites More sharing options...
haku Posted July 18, 2009 Share Posted July 18, 2009 You can't do it with HTML, but you can do it with PHP. Here are a couple links to help you: http://www.fpdf.org/ http://www.digitaljunkies.ca/dompdf/ Link to comment https://forums.phpfreaks.com/topic/166315-creating-a-pdf-from-the-html-page/#findComment-877430 Share on other sites More sharing options...
Amtran Posted July 19, 2009 Share Posted July 19, 2009 Wow! That's REALLY COOL haku! I had no idea you could do that! Link to comment https://forums.phpfreaks.com/topic/166315-creating-a-pdf-from-the-html-page/#findComment-877865 Share on other sites More sharing options...
haku Posted July 19, 2009 Share Posted July 19, 2009 Never actually done it myself - other than with a Drupal module that took care of everything in the background. But I've looked into it a bit in the past, which is how I knew about those libraries. Link to comment https://forums.phpfreaks.com/topic/166315-creating-a-pdf-from-the-html-page/#findComment-878008 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.