Re: [Tutor] Printing from python

2014-03-21 Thread Lee Harr
> is there another way to print a PDF form python? > > My problem is a PDF which is printed well by evince, but not with lp,  > even not out of python using > > os.system("lp some_options file.pdf") > > Later on I have to build the PDF in a python program (using reportlab)  > and then print it, eve

Re: [Tutor] Printing from python

2014-03-14 Thread Ben Finney
Ulrich Goebel writes: > So I look for a (nice documented) library which give access to the > CUPS API or something else to print the PDF from python. > > Any help is welcome! The problem isn't really one to be solved within your program, IMO. Printing is implemented as a service at the operatin

Re: [Tutor] Printing from python

2014-03-14 Thread Alan Gauld
On 14/03/14 10:40, Ulrich Goebel wrote: Later on I have to build the PDF in a python program (using reportlab) and then print it, even from the python program. So I look for a (nice documented) library which give access to the CUPS API or something else to print the PDF from python. I may be

Re: [Tutor] Printing from python

2014-03-14 Thread Timo
op 14-03-14 12:14, Ulrich Goebel schreef: I just found a hint, the Qt QPrinter Class. I use Qt, so that could be a solution? This would be your best bet, use the tools which are provided. I'm a GTK user and use the GTK printing API to both create and print reports. If you want to use cups, t

Re: [Tutor] Printing from python

2014-03-14 Thread Russel Winder
On Fri, 2014-03-14 at 11:40 +0100, Ulrich Goebel wrote: > Hallo, > > is there another way to pritt a PDF form python? > > My problem is a PDF which is printed well by evince, but not with lp, > even not out of python using > > os.system("lp some_options file.pdf") Python is deprecating os.syst

Re: [Tutor] Printing from python

2014-03-14 Thread Ulrich Goebel
Am 14.03.2014 11:40, schrieb Ulrich Goebel: is there another way to pritt a PDF form python? sorry, that doesn't make sense. I should say: is there another way ... besides os.system()? -- Ulrich Goebel Paracelsusstr. 120, 53177 Bonn ___ Tutor ma

Re: [Tutor] Printing from python

2014-03-14 Thread Ulrich Goebel
I just found a hint, the Qt QPrinter Class. I use Qt, so that could be a solution? Am 14.03.2014 11:40, schrieb Ulrich Goebel: Hallo, is there another way to pritt a PDF form python? My problem is a PDF which is printed well by evince, but not with lp, even not out of python using os.system

[Tutor] Printing from python

2014-03-14 Thread Ulrich Goebel
Hallo, is there another way to pritt a PDF form python? My problem is a PDF which is printed well by evince, but not with lp, even not out of python using os.system("lp some_options file.pdf") Later on I have to build the PDF in a python program (using reportlab) and then print it, even fro