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

查看:33
本文介绍了如何在 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 中做到这一点?例如.从图像 1 + 图像 2 + 图像 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天全站免登陆