【问题标题】:Taking Snapshot of a PDF using Python [duplicate]使用 Python 拍摄 PDF 的快照 [重复]
【发布时间】:2011-09-09 04:43:31
【问题描述】:

可能重复:
Converting a PDF to a series of images with Python

我知道使用 Python 打开 PDF 文件的代码:

import os
os.startfile('C:\file_name.pdf')

我的疑问是我是否可以将 pdf 文件的特定页面保存为图像文件(jpeg、png)?

【问题讨论】:

    标签: python image pdf png


    【解决方案1】:

    【讨论】:

    • 是的。必须安装 swftools,然后我将 gfx.pyd 文件复制到 C:\Python26\Lib\ 文件夹,然后在 gfx 模块中调用 inbuild 操作。谢谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多