0

Is there any way to generate PDF from html with floating divs (I can event use fixed width and height values for divs), margins and padding in Python? Does anybody know python libs which work correctly with this css property or may be system tools? Any info will be helpfull.

I have tried wkhtmltopdf. Pisa excluded immediately...

Denis Nikanorov
  • 832
  • 7
  • 16

1 Answers1

1

not python, but you could try http://phantomjs.org/ simple js to generate a page, then just call .render to generate a pdf

Chris Clarke
  • 2,103
  • 2
  • 14
  • 19
  • It will be an image, but from http://phantomjs.org/screen-capture.html "Beside PNG format, PhantomJS supports JPEG, GIF, and PDF." (I realise that's probably not quite what you want) – Chris Clarke Apr 09 '14 at 13:30