一个无需安装、无需登录、无需联网的 PDF 发票排版工具。批量选择发票后, 自动在每张 A4 纸上排列两张发票,并可直接打印或保存合并后的 PDF。
A zero-install, privacy-first PDF invoice layout tool. Select multiple invoice PDFs, place two invoices on each A4 sheet, then print directly or save the merged PDF.
- 批量添加多个 PDF 发票
- 调整文件顺序或删除单个文件
- A4 纵向上下排列或横向左右排列
- 自定义页面边距
- 可选页码、发票边框和中间裁切虚线
- 支持“一式两份”,将同一张发票重复排版
- 页面内预览后直接调用浏览器打印
- 下载合并后的 PDF
- 所有处理均在当前浏览器完成,不上传发票
- 下载仓库根目录的
index.html。 - 双击文件,用 Chrome 或 Edge 打开。
- 拖入或选择 PDF 发票。
- 调整版式后点击“在线打印”或“下载合并 PDF”。
index.html 已包含程序、样式、Logo 和 PDF 处理库,可以单独复制给其他人
使用,不需要保留其他文件。
本工具不需要服务器。发票文件只在当前浏览器标签页的内存中处理,不会被 上传到作者、GitHub 或其他第三方服务。关闭或刷新页面后,需要重新选择文件。
- 暂不支持带密码或加密的 PDF。
- 推荐使用桌面版 Chrome 或 Edge。
- 最终打印效果仍受打印机驱动和浏览器打印设置影响。
- 打印时建议关闭浏览器自带的页眉和页脚,并选择实际 A4 纸张。
需要 Node.js 18 或更高版本:
npm install
npm run build
npm test源文件位于 src/,构建脚本会将源代码、Logo 和 pdf-lib 打包进根目录的
单文件 index.html。
- Add multiple PDF invoices at once
- Reorder files or remove individual items
- Portrait top-and-bottom or landscape side-by-side A4 layouts
- Configurable page margins
- Optional page numbers, invoice borders, and center cut line
- Duplicate mode for printing two copies of each invoice
- In-page preview followed by the browser print dialog
- Download the merged PDF
- Fully local processing with no invoice uploads
- Download
index.htmlfrom the repository root. - Open it with desktop Chrome or Edge.
- Drop in or select your invoice PDFs.
- Adjust the layout, then choose Print online or Download merged PDF.
The generated index.html contains the app, styles, logo, and PDF processing
library. It can be copied and shared as a single file.
No server is required. Invoice files are processed only in the memory of the current browser tab. They are not uploaded to the author, GitHub, or any other third-party service. Reloading or closing the page clears the selected files.
- Password-protected or encrypted PDFs are not supported.
- Desktop Chrome or Edge is recommended.
- Final output may vary with browser print settings and printer drivers.
- For best results, disable browser headers and footers and select A4 paper.
Node.js 18 or newer is required:
npm install
npm run build
npm testSource files live in src/. The build script bundles the source, logo, and
pdf-lib into the self-contained root-level index.html.
MIT. See LICENSE and THIRD_PARTY_NOTICES.md.
