Perl

Moderators: Jonathan
Number of threads: 1257
Number of posts: 3636

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
HTML to PDF automatic conversion Posted by ebmaurer on 22 Mar 2006 at 7:28 PM
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
Report
Re: HTML to PDF automatic conversion Posted by Jonathan on 27 Mar 2006 at 8:35 AM
Hi,

: 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.");

Report
Re: HTML to PDF automatic conversion Posted by rtr on 22 Jan 2009 at 7:53 AM
Another solution:

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/
Report
Re: HTML to PDF automatic conversion Posted by fchivu on 2 Apr 2009 at 9:52 PM
You can try the html to pdf converter from http://www.winnovative-software.com. You can build a simple web service with the development library and call that html to pdf web service from any application.
Report
Re: HTML to PDF automatic conversion Posted by fchivu on 8 Aug 2009 at 11:39 PM
You can try the HTML to PDF converter from http://www.winnovative-software.com . It's a .NET library but you can easily create a web service to call from your PHP application.
Report
Re: HTML to PDF automatic conversion Posted by ppant on 9 Apr 2010 at 3:11 AM
You can also try WKHTMLTOPDF
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.


Report
This post has been deleted. Posted by ppant on 9 Apr 2010 at 3:16 AM
This post has been deleted.
Report
Re: HTML to PDF automatic conversion Posted by inman2787 on 14 Dec 2010 at 8:26 PM
I recommend this converter to you. (PDF to HTML Converter)
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.
Report
Re: HTML to PDF automatic conversion Posted by fchivu on 17 Jan 2011 at 4:56 AM
try this HTML to PDF converter.
Report
Re: HTML to PDF automatic conversion Posted by lotusvery on 15 Dec 2011 at 10:39 PM
I've heard there are some PDF converter program that can convert any formats related to PDF, you may search the internet and get what you want. and if you have finished it, you can change your PDF files into a flash book with the Kvisoft flip book software for easier reading: http://www.kvisoft.com/flipbook-maker/
Report
Re: HTML to PDF automatic conversion Posted by lotusvery on 15 Dec 2011 at 10:50 PM
I've heard there are some PDF converter program that can convert any formats related to PDF, you may search the internet and get what you want. and if you have finished it, you can change your PDF files into a flash book with the Kvisoft flip book software for easier reading: http://www.kvisoft.com/flipbook-maker/
Report
Re: HTML to PDF automatic conversion Posted by seval on 6 Jan 2012 at 3:16 AM
Yo recomiendo que la hiqpdf html to pdf software
Report
Re: HTML to PDF automatic conversion Posted by Aldridge on 28 Mar 2013 at 12:08 AM
Yep, there are such html to pdf conversion program, and i've been using such pdf converter for a long time, but im not understand the "automatic conversion".
Report
Re: HTML to PDF automatic conversion Posted by Aldridge on 28 Mar 2013 at 12:15 AM
Yep, there are such html to pdf conversion application, and i've been using such pdf converter for a long time. but im not sure about"automatic conversion"?
Report
HTML to PDF conversion Posted by Aldridge on 28 Mar 2013 at 12:21 AM
Yep, there are such html to pdf conversion application, and i've been using such pdf converter for a long time. but im not sure about"automatic conversion"?

Report
HTML to PDF conversion Posted by Aldridge on 28 Mar 2013 at 12:27 AM
Yep, there are such html to pdf conversion application, and i've been using such pdf converter for a long time. but im not sure about"automatic conversion"?

Report
HTML to PDF conversion Posted by Aldridge on 28 Mar 2013 at 12:32 AM
Yep, there are such html to pdf conversion application, and i've been using such pdf converter for a long time. but im not sure about"automatic conversion"?

Report
Re: HTML to PDF automatic conversion Posted by marty_89 on 1 Feb 2012 at 5:28 AM
i am also interested to learn this please teach me.

thanks



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.