faissaloux/pdf-suite 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

faissaloux/pdf-suite

最新稳定版本:v0.9.0

Composer 安装命令:

composer require faissaloux/pdf-suite

包简介

PDF CLI tool for PDF manipulation

README 文档

README

pip install pdf-suite

Features

  • Merges multiple PDF files / images into one PDF file.
  • PDF to Images.
  • Compress PDF.
  • Convert DOCX to PDF.
  • PDF pages count.

Usage

Merge

Merges multiple PDF files / images into one PDF file (output.pdf).

pdf_suite merge -i input -o output.pdf

In order

To merge your files in a specific order, you need to pass the order you want to --order option.

pdf_suite merge --input input --output output.pdf --order file1.pdf,file2,file3.jpg

Output

An ouput.pdf file will be generated in /output directory.

PDF to Images

Extract images from your PDF file.

pdf_suite pdf2img --input input.pdf --output images_directory

Zip extracted images from your PDF file using --zip.

pdf_suite pdf2img --input input.pdf --output images_directory --zip

You can also extract images from specific page.

pdf_suite pdf2img --input input.pdf --output images_directory --page 2

Output

An images_directory directory will be generated with all images from file.pdf.

Compress PDF

Compress a PDF file.

pdf_suite compress --input input.pdf --output output.pdf

Compress to a maximum size

You can specify the maximum size (MB) you need.

pdf_suite compress --input input.pdf --output output.pdf --max 2

input.pdf will be compressed to output.pdf with less than 2MB.

Output

A compressed PDF file output.pdf will be generated for you.

Convert DOCX to PDF

Convert DOCX document to a PDF.

pdf_suite docx2pdf --input input.docx --output output.pdf

PDF pages count

Get PDF document pages count.

pdf_suite pagescount --input input.pdf

统计信息

  • 总下载量: 262
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 0
  • 开发语言: Python

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-09