I want to print styled html pages with their images from a script. Can anyone suggest an open-source solution?
I’m using linux (Ubuntu 8.04) but would be also be interested in solutions for other operating systems.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could give html2ps a try, it is written in Perl, so I guess it wil run on any operating system that runs Perl. It does support CSS and images. It does not render as good as you may perhaps want.
To use in Debian/Ubuntu
sudo aptitude install html2psand then pipe the output tolprto print:Or pipe the output to ps2pdf to convert to a pdf file: