Combining multiple pngs in a single pdf in python

后端 未结 4 1972
梦谈多话
梦谈多话 2021-01-07 12:50

I am wondering if there is an easy way to combine multiple png images into a single pdf in python. I want each image to be a single page in the pdf. Is pypdf the best librar

4条回答
  •  自闭症患者
    2021-01-07 13:25

    There's a python port to WKHtmlToPdf:

    https://pypi.python.org/pypi/wkhtmltopdf/0.1

    Easy to create page breaks between img tags in an html doc using css which you can pass to this lib.

    http://wkhtmltopdf.org/usage/wkhtmltopdf.txt

提交回复
热议问题