[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] pdf print
From:       Jim Bublitz <jbublitz () nwinternet ! com>
Date:       2009-02-26 23:06:53
Message-ID: 200902261506.53316.jbublitz () nwinternet ! com
[Download RAW message or body]

On Thursday 26 February 2009 13:41:41 pm Nahuel Defossé wrote:
> Hi
> I've created pdf output in a StringIO file which I'd like to print in
> my PyQt4 app. Should I save it and send it to the system default
> reader? or could I automate this task? Is it possible to pirnt the
> file directly from PyQt? Thanks
> Nahuel

I use pdfs for checks, invoices, etc. ReportLab lets you do very precise 
layout easily.  I just save them as a temporary file and then use 
os.system and an lpr command to send them to the printer (under Linux):

Then cups worries about finding the printer, checking its status, 
managing the queue, translating to Postscript, etc.

Not sure how you'd do it with Windows or if you can send pdfs directly 
to the printer.

Jim

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic