How to generate pdf file from an html page??

Shane Geiger sgeiger at ncee.net
Sun Dec 16 14:32:32 EST 2007


Just some thoughts to get you started:

You may not get any responses because you weren't specific enough about
what you want to do.  Since you are asking about doing this via Python,
it seems you want to automate something which can be done from a menu
option in various Web browsers (use the print feature and print to
PDF).  You could, of course, download the files (as with the
command-line Web client, wget) and then convert html to PDF using
various tools.  Of course, this gives you a different result--of
course--because you would be using a different HTML rendering engine. 
So you have to ask yourself:  Is your goal to have a page that looks
exactly like it looks in Firefox? or in IE? or Safari?  Or are you only
concerned that you have the words of the document?


> Hi everyone, I am trying to generate a PDF printable format file from
> an html page. Is there a way to do this using   python. If yes then
> which library and functions are required and if no then reasons why it
> cant be done.
>
> Thank you All
>   


-- 
Shane Geiger
IT Director
National Council on Economic Education
sgeiger at ncee.net  |  402-438-8958  |  http://www.ncee.net

Leading the Campaign for Economic and Financial Literacy




More information about the Python-list mailing list