Printing HTML file via lpr: page, not code!

Dotan Cohen dotancohen at
Tue Dec 23 20:05:42 UTC 2008

2008/12/23 Matthew Flaschen <matthew.flaschen at>:
> Dotan Cohen wrote:
>> When printing an HTML document via lpr I am getting that the HTML code
>> is being printed, not the rendered page. How can I get the rendered
>> page to be printed? The file is in fact named with an .html extension.
>> Thanks.
> Use a2ps.

Thanks, Matthew. a2ps seems to call html2ps internally, which cannot
handle the unicode in the document. That is, unless I am doing it

$ html2ps calendar.html >
Returns a page with the incorrect encoding (UTF-8 as iso-8859-1).

$ html2ps -e utf8 calendar.html >
Returns a blank page.

I have also tried utf-8 UTF8 and UTF-8 but they all return blank pages.

Dotan Cohen


More information about the kubuntu-users mailing list