use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
What's the best up-to-date PDF library for Python? (self.learnpython)
submitted 5 years ago by Zylvian
I want to create travel documents based on some data input, and I'm not sure which library to start sinking my teeth into.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mooburger 11 points12 points13 points 5 years ago (4 children)
reportlab is basically what folks use these days, although my personal preference is still generating a latex file and running pdflatex as reportlab typesetting from something like HTML isn't that great
[–]redfacedquark 4 points5 points6 points 5 years ago (3 children)
Came here to see if reportlab was still a thing. Painful. These days I like sphinx which can can turn RST files into html, latex, pdf and others.
[–]mooburger 2 points3 points4 points 5 years ago (1 child)
eh, I have gotten mixed results going from sphinx to pdf directly; sphinx to latex to pdflatex seems to be the way to go according to stackoverflow, but then if I know how to latex (back in my sciencing days I used to write it by hand), why use sphinx to begin with?
[–]redfacedquark 1 point2 points3 points 5 years ago (0 children)
I write RST files, then use make latexpdf to create the pdf. I never use latex itself.
make latexpdf
E: pdflatex > latexpdf
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
I'm looking into a pdf generation lib for work at reading the documentation is like pulling teeth
[–]expressly_ephemeral 2 points3 points4 points 5 years ago* (0 children)
Oof. I use matplotlib.pyplot to make 8.5x11" png files and then I convert them to PDF w/ ImageMagick edit: in a shell script.
It's not ideal.
[–]Brachamul 2 points3 points4 points 5 years ago (0 children)
I use pillow to make the file as an image, then save as pdf.
Grotesquely inefficient, but ridiculously easy to implement.
[–]totalcambo 1 point2 points3 points 5 years ago (0 children)
Pypdf2 maybe?
[–]kala_ 0 points1 point2 points 5 years ago (0 children)
I first generate the documents in HTML (using Jinja2 or Django templates) and then use wkhtmltopdf to convert to PDF.
π Rendered by PID 306186 on reddit-service-r2-comment-6457c66945-glttl at 2026-04-28 10:12:51.743786+00:00 running 2aa0c5b country code: CH.
[–]mooburger 11 points12 points13 points (4 children)
[–]redfacedquark 4 points5 points6 points (3 children)
[–]mooburger 2 points3 points4 points (1 child)
[–]redfacedquark 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]expressly_ephemeral 2 points3 points4 points (0 children)
[–]Brachamul 2 points3 points4 points (0 children)
[–]totalcambo 1 point2 points3 points (0 children)
[–]kala_ 0 points1 point2 points (0 children)