Prev: ANNOUNCE: Major Feature Release - NHI1-0.7, PLMK-1.6 and libmsgque-4.5
Next: Newbie question: python versions differ per user?
From: Oltmans on 8 Mar 2010 10:36 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. 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
From: CM on 8 Mar 2010 12:51 On Mar 8, 10:36 am, Oltmans <rolf.oltm...(a)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. > > 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
From: Terry Reedy on 8 Mar 2010 13:48 On 3/8/2010 12:51 PM, CM wrote: > On Mar 8, 10:36 am, Oltmans<rolf.oltm...(a)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
From: Grant Edwards on 8 Mar 2010 18:06
On 2010-03-08, Oltmans <rolf.oltmans(a)gmail.com> wrote: > Guys, any ideas on how to convert HTML files to PDF files? os.system("w3m -dump %s | a2ps -B --borders=no -o - | ps2pdf - %s" % (infile,outfile)) -- Grant Edwards grant.b.edwards Yow! Am I accompanied by a at PARENT or GUARDIAN? gmail.com |