Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Sending pdf files direct to printer with Ghostscript in Windows environment

Patrick wang
on 4/13/14, 4:44 AM 1,638 views


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)


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 4/13/14, 4:44 AM
Seen: 1638 times
Last updated: 3/16/15, 8:10 AM