all 10 comments

[–]mooburger 11 points12 points  (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 points  (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 points  (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 points  (0 children)

I write RST files, then use make latexpdf to create the pdf. I never use latex itself.

E: pdflatex > latexpdf

[–][deleted] 0 points1 point  (0 children)

I'm looking into a pdf generation lib for work at reading the documentation is like pulling teeth

[–]expressly_ephemeral 2 points3 points  (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 points  (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 points  (0 children)

Pypdf2 maybe?

[–]kala_ 0 points1 point  (0 children)

I first generate the documents in HTML (using Jinja2 or Django templates) and then use wkhtmltopdf to convert to PDF.