Printing HTML file via lpr: page, not code!

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


2008/12/23 Matthew Flaschen <matthew.flaschen at gatech.edu>:
> 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
wrong:

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

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

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

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


More information about the kubuntu-users mailing list