Pretty Printing a Web Page

Paul Rubin http
Thu May 29 12:45:08 EDT 2003


Roger <haaserd at yahoo.com> writes:
> Perfectly formatted on paper, it should be a multipage report with
> headings repeated on subsequent pages and not contain any of the
> browser-generated page numbers, URLs, underlined links, etc. Even
> worse, it must be of a quality suitable for distribution to a group of
> equally old crotchety professionals. Worse still, the some of the
> group may become users and want to print perfectly formatted pages as
> well.
> 
> The best idea I can come up with is creating and downloading a csv
> file which could be loaded into a spreadsheet program, and then
> formatted and printed. This will probably be unacceptable.
> 
> Can anyone offer a better solution (or at least empathy)?

The Reportlabs pdf toolkit is supposed to be good (www.reportlab.com).
I haven't used it and don't know how complicated it is.

A simple approach is just generate TeX input (sort of like generating
HTML, there are table commands and so forth) and then run that through
TeX.




More information about the Python-list mailing list