Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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
Buang
Post Terkait Replies Tampilan Aktivitas
4
Mei 25
23122
0
Mar 25
1516
1
Jan 25
1944
1
Nov 24
1506
0
Apr 24
1371