that's all. Oh, it's not related to Python!
Anyway, the implementation of the pdf output function was completed in about 2 hours, so I think it's good when you don't have time.
Reference: http://tdoc.info/blog/2012/09/19/wkhtmltopdf.html
-It's super easy because you can create documents with html + css. -Especially, it has a good affinity when adding a pdf output function to a Web application. If you can see it in a browser, you can convert it to pdf, so all you have to do is create a "document page". Templates can be maintained in the same line as other general pages.
-Since it is html + css, control is limited. Mainly in the vertical direction. It can be used only when the bottom margin of the document does not matter.
All you have to do is hit the command, but the Python wrapper Python-wkhtml2pdf was super convenient.
Python2 only, but it can be handled in a few minutes.
I forked and put the Python 3 compatible guy here
https://github.com/yasunori/python-wkhtmltopdf/tree/myFeatureSpike
The reason why I didn't publicize it is that it was originally targeted at Python 2.5, and I'm afraid. print or something. __future__
I can't use it, what should I do with this? Please tell me a great person.
Sphinx Speaking of duments in Python, but this time I wanted to do it more quickly, so I gave up. http://tk0miya.hatenablog.com/entry/20111208/p1
reportlab If you search with Python or pdf, you will find this, but since it is Python2, I will not do it this time. I thought it was compatible with Python3! http://www.reportlab.com/software/documentation/relnotes/30/ Let's try it next time ...
The end
Recommended Posts