PDF Printing support from Python

Grant Edwards grante at visi.com
Fri Apr 22 15:02:15 EDT 2005


On 2005-04-22, dcrespo <dcrespo at gmail.com> wrote:

> Hi all... Is there a way to print a PDF file directly from
> Python without having Acrobat installed?

Assuming your printing system was setup competently:

   os.system("lpr %s" % filename)

> I know about ReportLab. It's a python module that lets you
> create almost any PDF document, but I still don't know if it
> supports printing, so I'm looking for a Python module that
> could do it. I want to print a PDF file just like if I were
> doing it from Acrobat.

Not sure what you mean by "just like if I were doing it from
Acrobat".

-- 
Grant Edwards                   grante             Yow!  I have seen these
                                  at               EGG EXTENDERS in my
                               visi.com            Supermarket... I have read
                                                   theINSTRUCTIONS...



More information about the Python-list mailing list