|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
General - Creating pdfs with php
Hi,
I have been trying to create pdf with php for so long, but no success ![]() I want to convert an already created php webpage to a pdf file. Please help. Also, please tell me, is it feasible to convert the webpage into pdf on the click of a button of a webform, I am asking this because I suppose "pdflib" is required to be installed. So how will I achieve this fuctionality if I want the page to be converted to pdf on a website. Please let me know, if I am not clear. I want this at the earliest. Thanks so much in advance. |
|
#2
|
||||
|
||||
|
convert HTML content to PDF content
Hi me_great, welcome to the forums,
Similar to having a PHP script output the HTML page, have a script use the same source but output a PDF file. Then have a link go to that file indicating what "page" to create.
__________________
WP plugins - Error Reporting, Clean Options http://www.mittineague.com/dev/er.php http://www.mittineague.com/dev/co.php |
|
#3
|
|||
|
|||
|
creating pdf using php
Hi Mittineague,
Sorry for the inconvenience,But, can you please elaborate your reply. Thanks. Quote:
|
|
#4
|
||||
|
||||
|
pdf version of pages
Right now you have PHP script that outputs your HTML pages. Write script that uses the same content source (most likely a database, maybe XML files?) that you are using to create the pages, but outputs PDF files instead. Then link to that script on each page.
How are you generating your pages now? |
|
#5
|
|||
|
|||
|
creating pdfs with php
Hi Mittineague,
I got it what you tried to say. Thanks for that. I will try that and let you know if I still face some issue. However, I have another problem , if you could help me with. Whenever, I try and write "$pdf=pdf_new();", it gives the error message-- Fatal Error: pdf_new() not found. I just wanted to know, where is the issue. FYI, I have installed the PDFLib. Quote:
|
|
#6
|
||||
|
||||
|
pdf_new
$p = PDF_new() is the syntax for PHP ver. 4
The syntax for PHP ver. 5 is $p = new PDFlib() http://us2.php.net/manual/en/ref.pdf.php |
|
#7
|
|||
|
|||
|
Pdfs in php
Hi Mittineague,
I get the same error for the PDFLib() class as well. But I got into the root of the things and found out that I was using PDFLib Lite instead of PDFLib. And, PDFLib Lite doesnot support all the functions and classes used to create pdfs, thats why I kept on getting the error. I cannot buy PDFLib, can you suggest any free tool , which I can use to create PDFs in php. Thanks in advance. |
|
#8
|
||||
|
||||
|
PDFlib
I thought PDFlib was free except for commercial use. But maybe you want it for commercial use or things have changed. In any case, the PHP documentation addresses this desire http://us2.php.net/manual/en/faq.us...q.using.freepdf, but I can't recommend any as I haven't used them.
|
|
#9
|
|||
|
|||
|
create pdf with php
Hi
I have been trying to create pdf with php for so long, but no success ![]() I want to convert an already created php webpage to a pdf file. Please help. Did u have the Code for that.Please let me know .I need it urgently.Please............. |
|
#10
|
|||
|
|||
|
hi
Can u help me in acheiving this functionality . i am beginner to Php and my client needs this work to be done as soon as possible.So please help me in getting this work done ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > General - Creating pdfs with php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|