跳转到主要内容

一个用于操作PDF文件的纯Python CLI应用程序

项目描述

Code style: black PyPI version GitHub last commit Python Support

cpdf

cpdf是一个用于操作PDF文件的纯Python CLI应用程序。

安装

pip install -U cpdf

由于cpdf是一个应用程序,您可能希望使用pipx来安装它。

用法

$ cpdf --help
Usage: cpdf [OPTIONS] COMMAND [ARGS]...

  cpdf is a pure-python cli application for manipulating PDF files.

Options:
  --version
  --help     Show this message and exit.

Commands:
  2-up            Create a booklet-style PDF from a single input.
  cat             Concatenate pages from PDF files into a single PDF file.
  extract-images  Extract images from PDF without resampling or altering.

您可以通过输入以下内容来查看每个子命令的帮助

$ cpdf 2-up --help
Usage: cpdf 2-up [OPTIONS] PDF OUT

  Create a booklet-style PDF from a single input.

  Pairs of two pages will be put on one page (left and right)

  usage: python 2-up.py input_file output_file

Arguments:
  PDF  [required]
  OUT  [required]

Options:
  --help  Show this message and exit.

项目详情


下载文件

下载您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码分布

cpdf-0.0.7.tar.gz (7.8 kB 查看哈希值)

上传时间: 源代码

构建分布

cpdf-0.0.7-py3-none-any.whl (8.3 kB 查看哈希值)

上传时间 Python 3

由以下提供支持