Python Forum
PDF tools - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: PDF tools (/thread-1832.html)



PDF tools - Skaperen - Jan-28-2017

i found 3 packages for manipulating PDFs in Python.  how many used one or more o f these?  i am curious how good they are.  my goal is basically making PDFs as output, many with tables of data.  currently i do this by making HTML and manually converting it to PDF by printing to a file.  this is awkward and i want to make this more automated.  can you suggest how well each works or suggest more packages? so far i have in my list: pdfrw, PDFMiner, and PyPDF2.


RE: PDF tools - wavic - Jan-28-2017

Have you seen http://www.reportlab.org?


RE: PDF tools - Skaperen - Jan-28-2017

(Jan-28-2017, 06:23 AM)wavic Wrote: Have you seen http://www.reportlab.org?

not until i tried the link.  thanks!


RE: PDF tools - wavic - Jan-28-2017

I know it since I started to learn Python and at that time it was too much complicated for me. Perhaps I have to check it again


RE: PDF tools - Skaperen - Jan-29-2017

reportlab seems to be focused on producing reports which makes it of interest to me as that is often what i need to do in my cloud-based work and in other things, or at least something like a report, so i will be exploring it.  the current project was just how best to send some text results to a non-profit group making some word games for people with alzheimer's.  they run Windows on their computers.  the goal is them printing my text results.  the text files have been getting mangled in the process, mostly font size and such, with page overflow on the right and down.  PDF files are at least coming out consistently ... the way i see the PDF is the same as how it prints for them.  so my plan is to do all my results in PDF format.  for that i need at least minimal PDF building capability, at least enough to handle pages of fixed text layout.  i have been manually making them by having Firefox read the text file and do print-to-file in PDF format.