跳至內容
選單
此問題已被標幟
8813 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
4
5月 25
22500
0
4月 25
5
0
3月 25
1041
1
1月 25
1470
1
11月 24
1192