export sites/pages to PDF

Tim Roberts timr at probo.com
Mon Aug 18 07:17:52 CEST 2008


jvdb <streamservenl at gmail.com> wrote:
>
>My employer is asking for a solution that outputs the content of urls
>to pdf. It must be the content as seen within the browser.
>Can someone help me on this? It must be able to export several kind of
>pages with all kind of content (javascript, etc.)

There are a number of obstacles to this.  Printer pages are a different
size from screen windows, so the browser does the layout differently.
Further, many style sheets have rules that are "screen only" or "print
only".

If you really want an image of exactly what's on the screen, then I don't
think you have any option other than a screen capture utility, like "xwd".
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list