Convert HTML into PDF using Python

前端 未结 3 803
灰色年华
灰色年华 2020-12-16 07:52

I am trying to convert HTML into a PDF document in Django and haven\'t been successful.

I have tried using wkhtmltopdf 0.9.9, however Apache throws an error that wkh

3条回答
  •  伪装坚强ぢ
    2020-12-16 08:45

    A possible, but not so elegant solution, is to run a small scripts which renders the html via a headless browser component (webkit/xvfb on Linux) and then saves it as a pdf.

提交回复
热议问题