print pdf file to network printer using python

2005-07-21 Thread scrimp
Well, Ive been searching through google groups and Ive seen a lot about printing a pdf file, but I havent seen a definite answer. I tried this code: f = open(printer_path, 'w') f.write(pdffile_path) f.close() Basically it doesnt work and what it prints out is the value of pdffile_path variable.

Re: print pdf file to network printer using python

2005-07-21 Thread Grant Edwards
On 2005-07-21, scrimp [EMAIL PROTECTED] wrote: Well, Ive been searching through google groups and Ive seen a lot about printing a pdf file, but I havent seen a definite answer. I tried this code: f = open(printer_path, 'w') f.write(pdffile_path) f.close() Basically it doesnt work and what

Re: print pdf file to network printer using python

2005-07-21 Thread scrimp
I just tried it and all that printed out was garbage. I found another way to do it. It all depends on what you wanna do. If u want to print to the default printer (easiest way) then just use this line: win32api.ShellExecute(0, print, file_path, None, ., 0) file_path of course being the full path