Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
8821 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
4
трав. 25
22508
0
квіт. 25
5
0
бер. 25
1047
1
січ. 25
1473
1
лист. 24
1193