Re: print PDF on windows

2009-08-28 Thread Sam Lai
2009/8/27 mettwoch : > > Apache is running under a system account. A quick test of running > Apache under my user account enabled printing indeed. I'll follow your > suggestion and create a dedicated user with restricted rights to run > Apache under. I'd leave Apache running

Re: print PDF on windows

2009-08-27 Thread mettwoch
Apache is running under a system account. A quick test of running Apache under my user account enabled printing indeed. I'll follow your suggestion and create a dedicated user with restricted rights to run Apache under. Thanks so much for your help Marc On Aug 27, 2:42 am, Sam Lai

Re: print PDF on windows

2009-08-26 Thread Sam Lai
2009/8/27 mettwoch : > > 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

Re: print PDF on windows

2009-08-26 Thread mettwoch
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',

Re: print PDF on windows

2009-08-25 Thread Sam Lai
Use python to call a PDF reader via the command line - http://support.adobe.com/devsup/devsup.nsf/docs/52080.htm http://foxit.vo.llnwd.net/o28/pub/foxit/manual/enu/FoxitReader30_Manual.pdf (see the Command Line section) Depending on the complexity of your PDFs, I'd recommend using Foxit

Re: print PDF on windows

2009-08-25 Thread Peter Bengtsson
Suppose you have a PDF (generated or downloaded from the internet), are you able to get it printed by scripting? On Aug 25, 4:38 pm, mettwoch wrote: > How do the Django people handle printing directly on Windows? I > remembered

print PDF on windows

2009-08-25 Thread mettwoch
How do the Django people handle printing directly on Windows? I remembered about http://timgolden.me.uk/python/win32_how_do_i/print.html, but unfortunately his method for PDFs only print on the default printer. I need the server to produce the PDF, save it (works already) and send it to a