Hi,
Anybody knows a script or function to convert automatically online a html page to pdf?
Should be like this: I have a online reservation system where clients receive at the end the reservation voucher in html style. I would like to have shown instead of the html page a pdf voucher document.
How can I do this?
Thanks
Comments
: Anybody knows a script or function to convert automatically online a
: html page to pdf?
:
If you're willing to cough up some cash then:-
http://www.suite101.com/article.cfm/perl/108695
Also, search.cpan.org with search for HTML PDF gives some interesting results, such as
http://search.cpan.org/~autrijus/PDF-FromHTML-0.12/lib/PDF/FromHTML.pm
Rather than going from HTML, you might consider a PDF template that you just fill in; this module helps with that.
http://search.cpan.org/~larslund/PDF-Reuse-0.33/Reuse.pm
Jonathan
###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
import officetools.OfficeFile;
...
FileInputStream fis = new FileInputStream(new File("test.html"));
FileOutputStream fos = new FileOutputStream(new File("test.pdf"));
OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
f.convert(fos,"pdf");
All possible convertions:
html --> pdf
doc --> pdf, html, txt, rtf
xls --> pdf, html, csv
ppt --> pdf, swf
from dancrintea.ro/html-to-pdf/
http://code.google.com/p/wkhtmltopdf/
This is open source and also supports CSS. It can be easily called through Perl as a batch process and perl script can be run through cron.
[/size][color=Green][/color]
Convert your PDF files to HTML using the PDF to HTML converter and easily integrate resulting HTML files in your existing web site structure.
How interesting...
Maybe I can actually do some of the crazy things I get handed!
Suhweet.
thanks