Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
8873 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 5 25
22614
0
thg 4 25
5
0
thg 3 25
1137
1
thg 1 25
1544
1
thg 11 24
1219