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, this is a project with Python bindings for cups: https://pypi.python.org/pypi/pycups/1.9.66

Timo



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




_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to