◉ Pulse
ButterBartel3C3A avatar
#16 today

ButterBartel3C3A/PDFpaster

Python Other AGPL-3.0

Turn PDFs into sequence of pics. PNG & JPG optional. Export into new pure pic PDF or DOCX or folder. Easily copy and paste them into contracts and bid documents.

Last active 3 months ago Created Aug 6, 2026
Stars
8
Today
+8
Forks
0
Quality
95/100
Momentum
20

README

Fetched from GitHub on Nov 7, 2026, 1:22 AM UTC · README.md

View original on GitHub

Third-party content — Open Source Pulse is not the owner of this repository.

This README belongs to ButterBartel3C3A/PDFpaster and its contributors. We fetch it directly from the project’s public GitHub repository and display it for reference only. All text, code, images and trademarks remain the property of their respective authors. Licensed under AGPL-3.0. Copyright / takedown policy.

李玲玲大战办公室(PDF VS Offees)

项目代号/仓库名:PDFpaster;软件显示名与 exe 文件名在 config.py 单点定义。

批量 PDF 页面栅格化工具:一次导入最多 99 个 PDF,把每一页渲染成图片, 并可同时产出三种形态——图片序列 / Word 文档 / 纯图片 PDF。 为标书、认证材料等"逐页贴图进 Word"的场景而生。

Batch PDF page rasterizer: render every page of up to 99 PDFs at once into an image sequence, a Word document, and/or an image-only PDF — built for bid/tender and certification document preparation.

功能特性

  • 三种输出模式(可多选,一次任务同时产出)
    • 图片序列(PNG/JPG):默认零填充命名(xxx_001.png),全选拖入/插入 Word 后顺序不乱
    • Word 文档(.docx):图宽自动等于版心宽度、按原页序、图片间一个空段落
    • 纯图片 PDF:页面图片化后重封装,可绕过权限锁带来的打印限制
    • 各模式带子选项:图片序列可全部导出至同一文件夹;docx/PDF 可合并为单文件
  • 加密 PDF 处理:权限锁(编辑锁)自动无视;打开密码弹窗输入,不限次重试
  • 可配置:分辨率(默认 300 DPI)、JPG 质量、PNG 压缩等级(0-9,越大越慢越小)、命名模板({name} {page} {seq} {prefix})、页码范围(如 1-5,8,10-)、重名处理策略
  • 列表排序:编号列 + 拖拽移动(支持多选),并保留上移/下移按钮
  • 稳健:单文件失败/跳过不中断整体任务;支持中途取消;批量上限 99 个
  • 双语界面:简体中文 / English,语言文件外置于 locales/,第三方可自行添加翻译
  • 绿色软件:单 exe、无终端窗口、不写注册表

运行(开发态)

pip install -r requirements.txt
python app.py

打包(Windows)

pip install -r requirements-dev.txt
.\build.ps1
# 产物:dist\PDFpaster.exe(单文件、无终端窗口)

使用说明

  1. 添加 PDF(按钮或拖拽进列表),列表顺序即处理顺序——拖行或用按钮调整;
  2. 选择输出位置与输出模式(可多选),按需调整 DPI / 格式 / 压缩等级 / 命名 / 页码范围;
  3. 点击"开始转换";加密文件会弹出密码框,取消则跳过该文件;
  4. 完成后可一键打开输出文件夹。

贴入 Word 的顺序:默认命名已做零填充(字典序 = 页序)。推荐用 Word 的"插入 → 图片"多选,顺序最稳;从资源管理器拖入时请全选后 拖拽第一张图片,顺序才与选择顺序一致。

关于"签名保留":输出图片保留页面一切可见内容(含印章、签名的视觉 外观),但数字签名的加密验证属性无法随图片转移。

添加界面语言

复制 locales/zh-CN.json 为 locales/xx-YY.json,翻译 strings 内 的文案(language_name 填该语言的自称),放到 exe 旁的 locales/ 目录即可在"界面语言"中选用,无需修改程序。欢迎 PR。

项目结构

PDFpaster/
├── app.py            # 入口:组装 core 与 ui
├── config.py         # 全局配置(显示名/exe 名单点定义,更名只改这里)
├── assets/           # LOGO.svg 源文件与生成的图标(tools/make_icon.py 再生成)
├── core/             # 纯 Python 转换引擎(无 GUI 依赖,可独立测试)
│   ├── runner.py     #   任务编排:进度、取消、失败隔离
│   ├── render.py     #   PDF 打开(密码流程)与逐页渲染
│   ├── writers.py    #   三种输出模式写入器
│   ├── pagerange.py  #   页码范围解析
│   └── naming.py     #   命名模板与冲突处理
├── ui/               # PySide6 界面
├── locales/          # 外置语言文件
└── tests/            # pytest(core 端到端 + UI 离屏冒烟)

测试

python -m pytest

开源协议

GNU AGPL-3.0(见 LICENSE)。简要含义:

  • ✅ 商用/非商用均免费使用;使用本软件产出的文档和结果可任意使用;
  • ✅ 可修改源代码后开源分发;
  • ❌ 不得将源代码用于商用闭源项目;不得修改后闭源分发(含以网络 服务形式提供)。

依赖:PyMuPDF(AGPL-3.0)、PySide6(LGPL-3.0)、python-docx(MIT)、Pillow(HPND)。

Rendered by GitHub from the repository’s README. Scroll to read the full file.
First trending

Aug 6, 2026

first spotted on the list

Best rank

#16

highest position reached

Appearances

1

times on the trending list

Quality score

95

out of 100

Momentum

20

trend strength indicator

Star velocity

0.09

stars per day since creation

Activity — last 60 days

daily counts, collected every 6 hours
  • Stars
  • Forks
  • Merged PRs
  • Issues
  • Closed issues

Collecting activity data since launch — check back in a few days.

Star history

total stars per snapshot

Not enough snapshots yet — check back soon.

Rank history

position on trending · lower is better

Not enough snapshots yet — check back soon.

Top contributors

by commits

Language breakdown

by bytes of code
Python 99.5%
  • Python 101 KB 99.5%
  • PowerShell 539 B 0.5%

3D card for your website

Live HTML card with a glass surface and pointer tilt. Paste the iframe on any website.

<iframe src="https://www.notionpulse.cc/embed/ButterBartel3C3A/PDFpaster" width="420" height="240" style="border:0;max-width:100%;background:transparent" loading="lazy" title="ButterBartel3C3A/PDFpaster — trending on Open Source Pulse"></iframe>

Stars badge

Show current stars in your README or profile. Auto-updates every 6 hours.

ButterBartel3C3A/PDFpaster stars badge
Markdown
[![ButterBartel3C3A/PDFpaster](https://www.notionpulse.cc/api/badge/ButterBartel3C3A/PDFpaster.svg)](https://www.notionpulse.cc/repo/ButterBartel3C3A/PDFpaster)
HTML
<a href="https://www.notionpulse.cc/repo/ButterBartel3C3A/PDFpaster"><img src="https://www.notionpulse.cc/api/badge/ButterBartel3C3A/PDFpaster.svg" alt="ButterBartel3C3A/PDFpaster stars badge" /></a>

Repository of the Day

#16 Repository of the Day

Repository of the Week

#16 Repository of the Week

Repository of the Month

#16 Repository of the Month