如何在Python中创建PDF文件 [英] How to create PDF files in Python

查看:94
本文介绍了如何在Python中创建PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在一个项目中,该项目从用户那里获取一些图像,然后创建一个包含所有这些图像的PDF文件.

I'm working on a project which takes some images from user and then creates a PDF file which contains all of these images.

在Python中是否有任何方法或工具可以做到这一点?例如.从image1 + image 2 + image 3-> PDF文件创建PDF文件(或eps,ps)?

Is there any way or any tool to do this in Python? E.g. to create a PDF file (or eps, ps) from image1 + image 2 + image 3 -> PDF file?

推荐答案

我建议 pyPdf .它真的很好.不久前,我也写了一篇博客文章,您可以找到它此处.

I suggest pyPdf. It works really nice. I also wrote a blog post some while ago, you can find it here.

这篇关于如何在Python中创建PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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