Converting HTML to PDF using Python?

Terry Reedy tjreedy at udel.edu
Mon Mar 8 19:48:01 CET 2010


On 3/8/2010 12:51 PM, CM wrote:
> On Mar 8, 10:36 am, Oltmans<rolf.oltm... at gmail.com>  wrote:
>> Hi Python superstars,
>>
>> Guys, any ideas on how to convert HTML files to PDF files? Or as an
>> alternative, how to convert HTML files to an image file(jpeg/png/etc)?
>> Ideally, the converted PDF/Image file should like exactly like the way
>> HTML file looks in the browser.

How an HTML file looks in *a* (not *the*) browser depends on the 
browser, its settings, and window size. That is both a virtue and a 
reason for the invention of pdf format.

>> I really have no idea about this so I will really appreciate all the
>> help. Thanks in advance and kindly pardon my ignorance.
>>
>> Thanks,
>> Oltmans
>
> http://lmgtfy.com/?q=python+html+to+pdf





More information about the Python-list mailing list