Skip to Content
Menu
This question has been flagged
8842 Zobrazenia

Hi,

I'm exploring using ghostscript to have pdf files printed directly to the default printer on the server machine which is Windows 2008 server. Below is what I used in my test with ghostscript. My question is where I can use the code, and redirect the pdf output when I press the "print" button in the view.

import win32api 
invoice = "D:\Downloads\Invoices.pdf" 
win32api.ShellExecute(0, 'open', 'C:\Program Files\Ghostgum\gsview\gsprint.exe', invoice, '.', 1)

Thanks.

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
4
máj 25
22551
0
apr 25
5
0
mar 25
1072
1
jan 25
1482
1
nov 24
1202