Hi everyone,
I am trying to get PDF file output from the python program to give a print. is there any solution? please give me a valuable reply...

Member Avatar for leegeorg07

your question is a little bit vague, but i would say look at pypi, that might be of help

You could use this library: http://www.swftools.org/gfx_tutorial.html

It will let you easily convert a PDF to another image format that you might find easier to print.

As for ReportLab, I could be wrong but I don't think it will decode PDFs. It will generate them, however.

Hi everyone,
I am trying to get PDF file output from the python program to give a print. is there any solution? please give me a valuable reply...

If I read this right, you want to create one PDF file for printing your Python program results (text, drawings, images). In this case the reportlab module will do the job.

It's free at:
http://www.reportlab.org/downloads.html

You can download Windows Binary Installers for your version of Python, but the manuals need to be created from the Source package.

If you just want to convert text, there are tools like txt2pdf. You'll have to Google "text pdf" to see what runs on your OS.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.