I am quite comfortable in generating PDFs from HTML using pisa. Is there any similar option to generate image instead of PDF? The purpose is to generate dynamic Identity cards.
Asked
Active
Viewed 1,492 times
1
-
1The HTML -> PDF transformation is non-trivial -- there's a lot of layout stuff etc. going on. Why not just convert your PDFs to images? – Katriel Mar 20 '12 at 13:35
-
1The answer to [this question](http://stackoverflow.com/questions/9390493/how-to-take-a-snapshot-of-a-section-of-a-web-page-from-the-shell) should be useful. – Burhan Khalid Mar 20 '12 at 13:36
1 Answers
2
pisa
does a lot of layout, formatting and what have you. Why not just convert the PDFs you already have to images?
You can use something like ImageMagick's Python bindings.

Katriel
- 120,462
- 19
- 136
- 170