使用PIL/Pillow将多个页面添加到新的PDF [英] Add multiple pages to new PDF using PIL/Pillow

查看:300
本文介绍了使用PIL/Pillow将多个页面添加到新的PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://pillow.readthedocs. org/en/3.0.x/handbook/image-file-formats.html#pdf

Pillow文档提到能够保存多个页面,但是我找不到其他任何文档或代码示例来告诉您如何将页面添加到新的PDF.

The Pillow docs mention being able to save multiple pages, but I can't find any other docs or code samples that tell you how to add pages to a new PDF.

推荐答案

Pillow目前似乎无法实现,我使用reportlab从头开始构建了多页PDF:

Doesn't seem like this is currently possible with Pillow, I used reportlab to build a multi-page PDF from scratch:

https://pypi.python.org/pypi/reportlab

这篇关于使用PIL/Pillow将多个页面添加到新的PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆