- स्वगृह
- या गृपमधे भाग घेण्यासाठी मायबोलीत प्रवेश करा/मायबोलीकर व्हा !
तंत्र आणि मंत्र
सदस्य प्रवेश |
PHPI am searching for some utility/library (free source) for pdf creation. The requirement is not to save any temporary document (the generated html or pdf) on server side. Can anyone guide or point me to such code snippet/library? (I thought to open a new thread in "Looking For" for "Code Snippets". If many people can see such thread as a help, we can open it.)
4 ऑगस्ट, 2008 - 01:01 dhumketu
|
|
There is already pdf library builtin as part of php
http://us3.php.net/pdf
Also you can check fpdf
http://www.fpdf.org/
And also R&OS PDF class
http://www.ros.co.nz/pdf/
and check this article
Creating PDF files in PHP
http://www.zend.com/zend/spotlight/creatingpdfmay1.php
Thank you for the response.
I went through all the links, but all require to set text, column font etc. information.
Only One library requires the file to be present somewhere. As I do not want to store the file on server, it won't be helpful much.
Let me give the reason why I am interested in the html page output first in browser & then pdf. I have the html template already with me. It is like XHTML. It is big template. Neither, I want to touch it nor I want to replicate all the contents in pdf creation logic thro' SetText, CreateTable etc... I shall only set the values in it and send to browser.
I would have saved it at some temp location, but such report generation will be huge in number and sys admin has to clean all such temp files on regular basic.
Anyway, thanks again for the links. I may find some more info while navigating through them.
To Admin, Thanks for creating new topic for programming. Hope this will help people.
I think this is what you need perhaps?
http://www.rustyparts.com/pdf.php
posted by Dhulekar.
You may try pdf995 on "http://www.software995.com/"
This site also has encription available.
So enjoy free s/w.
Bullzip pdf printer at http://www.bullzip.com/products/pdf/info.php
Thanks to all for the tips.
Seems that rustyparts is a good one. I have to see how ps2pdf can be installed on web hosting service.
ती ghost script नावाची एक भानगड आहे ती बघितलीत का? बर्याच वर्षांपूर्वी client server applications लिहिताना ती वापरत असू.
http://www.gnu.org/software/ghostscript/ghostscript.html
GhostScript requires some scripts to be installed on server side. Now if i am hosting the website on some service provider's server, then its difficult for me to install such components.
I found something interesting yesterday
http://www.mactech.com/articles/mactech/Vol.20/20.11/FillOnlinePDFFormsU...
After reviewing I found that, it requires server side installations
http://pdml.sourceforge.net/ This can convert html pages to pdf. One has to change html to pdml tag. But this does not support much styles (CSS)
I also tried fdf, but it gets downloaded with reference to original pdf.
html2pdf from http://www.tufat.com/s_html2ps_html2pdf.htm is also one good utility (Thanks to them who have suggested this one). This solved my problem. This can support many styles (not all though).
Now I am trying to convert pdf files to HTML file. No good convertor is available which gives perfect styling of original pdf.