[Tutor] Printing from python

Ulrich Goebel ml at fam-goebel.de
Fri Mar 14 12:14:26 CET 2014


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("lp some_options file.pdf")
>
> 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.
>
> Any help is welcome!
>
> Ulrich
>
>

-- 
Ulrich Goebel
Paracelsusstr. 120, 53177 Bonn


More information about the Tutor mailing list