I'm now using Foxit Reader. Thanks for the tip. The following works
perfectly in the Django shell and prints the document in
attachment.file.path to the specified network printer:
p = Popen (['C:\\Program Files\\Foxit Software\\Foxit Reader\\Foxit
Reader.exe',
'/t',
attachment.file.path,
'\\\\SM03\\HPCOMPTOIR0'])
The same code works silently in a Apache / mod_wsgi context but does
not produce any result on the printer. Do You have any ideas?
Marc
>
http://foxit.vo.llnwd.net/o28/pub/foxit/manual/enu/FoxitReader30_Manu...
> (see the Command Line section)
>
> Depending on the complexity of your PDFs, I'd recommend using Foxit
> instead; Adobe Reader on windows isn't the most stable especially when
> it comes to open many PDFs - you might have to manually manage
> instances to make sure it doesn't eat up all your memory. Foxit Reader
> however doesn't render all PDFs perfectly, or at least the same way
> that Adobe Reader does. YMMV though.
>
> 2009/8/26 mettwoch <
mettw...@pt.lu>:
>
>
>
> > How do the Django people handle printing directly on Windows? I
> > remembered abouthttp://
timgolden.me.uk/python/win32_how_do_i/print.html,