Welcome to Dream.In.Code
Become a PHP Expert!

Join 136,924 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,804 people online right now. Registration is fast and FREE... Join Now!




save current php web into .PDF

 
Reply to this topicStart new topic

save current php web into .PDF

imaro
18 Mar, 2008 - 04:52 AM
Post #1

New D.I.C Head
*

Joined: 16 Feb, 2008
Posts: 10


My Contributions
i want to make a save button in my php web....when user click the button, the information that appear on the current php web will be save into .PDF format so that user can keep it as a soft copy...

can anyone help me???i hope i'll get the solution... rolleyes.gif
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Save Current Php Web Into .PDF
18 Mar, 2008 - 09:33 AM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,231



Thanked: 220 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Hello imaro,

If you are looking for a process to create a "snapshot" of the current page, I have never seen it done. However, if you are looking to take the text and dynamic content that created a page and put it into a new PDF file for export, then you only need to look as far as using the PDFlib library for PHP (a commercial product). It has a series of functions that creates PDFs and will allow you to export them to the user relatively easy.

If you are looking for something that is free and such you can check out the following addresses...

http://www.ros.co.nz/pdf/
http://www.fpdf.org/
http://www.gnuvox.com/pdf4php/
http://www.potentialtech.com/ppl.php

I hope this puts you on the right path to finding a good solution for your situation. smile.gif


User is online!Profile CardPM
+Quote Post

akozlik
RE: Save Current Php Web Into .PDF
20 Mar, 2008 - 02:24 PM
Post #3

D.I.C Addict
Group Icon

Joined: 25 Feb, 2008
Posts: 615



Thanked: 24 times
Dream Kudos: 750
My Contributions
Martyr beat me to it. I've used fpdf a lot in the past, and I've found it to be pretty simple to use. There are tutorials on their site as well to help you get through the software.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 10:18PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month