Pdfdo
pdf文件处理工具, 包含: pdf剪切, pdf旋转, pdf合并, pdf拆分, pdf添加页码, pdf转图片, word转pdf等功能
Install / Use
/learn @jiandandaoxingfu/PdfdoREADME
pdfdo
可以对pdf文件做如下操作
- 剪切,
- 旋转,
- 合并,
- 拆分,
- 添加页码:将页码文档page-number.pdf放在软件同一目录下,
- 转图片。
- word转pdf(需要安装word) 等功能。
使用说明
-
选择文件: 点击选择文件按钮, 选择文件(可以多选). 也可以拖入文件到文件框. 文件框中会显示文件名.
- 参数: 无
-
拆分每页: 可以把pdf文件全部拆成单页, 支持多个pdf文件.
- 参数:
-
部分拆分: 可以把pdf文件按照指定页码范围拆分, 支持多个文件.
- 参数: 一个或多个页码范围构成的数组. 如: [(1, 10), (20, 40)].
-
文件合并: 选择多个pdf文件, 然后点击合并. 注意pdf文件顺序. 可以按照先后顺序一个一个拖入文件框.
- 参数: 合并后pdf文件名. 默认为: 合并后文件名.pdf.
-
文件剪切: 可以对pdf文件进行剪切. 状态框会显示pdf文件的长宽, 根据比例进行尝试. 仅支持单个文件
- 参数: 6个参数构成的数组.
- 前四个为整数值, 分别表示左, 右, 下, 上需要剪切的大小;
- 第5个参数取值为"even", "odd"或"all": 表示剪切奇数页, 偶数页或者全部;
- 第6个参数取值1或0: 1表示只剪切第一页, 进行测试, 速度比较快. 0表示全部剪切.
- 参数: 6个参数构成的数组.
-
文件旋转: 可以旋转pdf文件. 支持90, 180, 270度旋转. 支持多个文件.
- 参数: 90/180/270.
-
添加页码: 可以对pdf文件添加页码. 支持多个文件.
- 注: 需要将 page-number.pdf 文件与 pdfdo.exe 程序放在同一文件夹. 最多支持1000页.
-
转为图片: 可以将pdf文件逐页转为图片. 支持多个文件.
- 参数: 10-1000. 数值越大图片越清晰, 转换时间也越长. 一般200足够.
- 注: 每个pdf文件生成的图片会单独存放在一个文件夹.
-
Word转PDF: 可以批量将word文件转为pdf文件.
- 注: 电脑需要安装word程序, 我们支持借助于此程序进行批量转换.
最后一栏状态框会显示pdf文件信息, 如页码, 长宽等.
所有生成的文件与处理前的文件在同一目录.
相关库
- pdf文档处理: PyPDF2.
- pdf转图片: pdf2image.
- word转pdf: pywin32, 调用Office.
- UI:wxpython.
- exe文件:pyinstaller.
打包方法
python需要3.6版本 首先安装上述库,其中pyinstaller可以官网下载压缩包,然后把待打包程序放在其解压文件夹下,然后命令行运行 pyinstaller -F -w xx/xx/app.py 其中-F, -w分别表示打包为单个执行exe程序,不显示命令行窗口。
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
110.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
351.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
