# 使用 Homebrew, apk, dnf, winget 安装 cpdf

查看 cpdf 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:cpdf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cpdf
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cpdf
```

  证据: Alpine Linux edge package indexes: cpdf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install cpdf
```

  证据: Fedora Rawhide package metadata: cpdf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id CoherentGraphics.Cpdf -e
```

  证据: Windows Package Manager source index: CoherentGraphics.Cpdf from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:cpdf
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cpdf>
- **版本:** 2.9.1
- **来源摘要:** PDF Command-line Tools
- **主页:** <https://github.com/johnwhitington/cpdf-source>
- **仓库:** <https://github.com/johnwhitington/cpdf-source>
- **许可证:** AGPL-3.0-only
- **源码归档:** <https://github.com/johnwhitington/cpdf-source/archive/refs/tags/v2.9.1.tar.gz>
- **最后更新:** 2026-07-13T05:11:30Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cpdf (cli)
- cpdf (别名)

## 依赖

- camlpdf
- ocaml

## 构建依赖

- ocaml-findlib

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.9.1
- 管理器更新时间: 2026-07-13
- 本地数据: OK
- 上游仓库: https://github.com/johnwhitington/cpdf-source
- 检测到的最新版本: v2.9.1 (当前)
## 项目历史与用法

cpdf is the Coherent PDF command-line tool for editing PDF files, distributed as source under the AGPL with separate commercial licensing available from Coherent Graphics.

### 项目历史

The official source README describes cpdf as both a command-line PDF editing tool and an OCaml library. It directs binary users to a separate cpdf-binaries repository and tells source users to build tagged versions rather than the unstable master branch.

### 采用历史

Official packaging information in the README includes OPAM installation for the OCaml library and notes that cpdf may also be available from package managers. The batch source facts list Homebrew, Alpine, Fedora-family, and winget mappings, showing distribution beyond the upstream binary channel.

### 使用方式

cpdf is used as a command-line document-processing tool for PDF manipulation. The upstream documentation is a PDF manual, while the source tree also builds OCaml library documentation after compilation.

### 为什么软件包爱好者会关心

cpdf is packaging-relevant because it combines a CLI binary, an OCaml library, AGPL/commercial licensing choices, OPAM installation, upstream binary releases, and downstream OS package entries. That mix affects how packagers choose source tags, license metadata, and binary placement.

### 时间线

- Tagged releases: The README instructs GitHub source users to choose a version tag such as v2.9.1.
- 2023: The README notes PDF/UA support was implemented under NLnet grant 2023-12-031.
- 2025: The README notes redaction support is being implemented under NLnet grant 2025-10-235.
- 2026: The README carries Coherent Graphics Ltd copyright through 2026.

### Related projects

- The README names camlpdf as a build prerequisite and lists related C, Python, Java, .NET, and JavaScript interfaces, including cpdflib-source, pycpdflib, jcpdf, dotnet-libcpdf, and coherentpdf.js.

### 来源

- <https://github.com/johnwhitington/cpdf-source#readme>
- <https://www.coherentpdf.com/cpdfmanual.pdf>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cpdf
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- apk - cpdf - 2.9.1-r0: normalized package name match | Alpine Linux edge package indexes: cpdf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Coherent PDF command line tools | https://community.coherentpdf.com/
- apk - cpdf-doc - 2.9.1-r0: normalized package name match | Alpine Linux edge package indexes: cpdf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Coherent PDF command line tools (documentation) | https://community.coherentpdf.com/
- apk - ocaml-camlpdf - 2.9.1-r0: normalized package name match | Alpine Linux edge package indexes: ocaml-camlpdf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OCaml library for reading, writing, and modifying PDF files | https://community.coherentpdf.com/
- apk - ocaml-cpdf - 2.9.1-r0: normalized package name match | Alpine Linux edge package indexes: ocaml-cpdf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Coherent PDF command line tools (OCaml library) | https://community.coherentpdf.com/
- dnf - cpdf - 2.9-3.fc45: normalized package name match | Fedora Rawhide package metadata: cpdf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Command line tool for processing PDFs | https://github.com/johnwhitington/cpdf-source
- winget - CoherentGraphics.Cpdf: normalized package name match | Windows Package Manager source index: CoherentGraphics.Cpdf from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [ocaml](https://pkg.so/zh-hans/brew/ocaml/) - Runtime dependency declared by Homebrew.
- [ocaml-findlib](https://pkg.so/zh-hans/brew/ocaml-findlib/) - Build dependency declared by Homebrew.
- [diff-pdf](https://pkg.so/zh-hans/brew/diff-pdf/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [pdfpc](https://pkg.so/zh-hans/brew/pdfpc/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [latexdiff](https://pkg.so/zh-hans/brew/latexdiff/) - Shares pkgdb curated category or tags: cli, document-processing, productivity.
- [briss](https://pkg.so/zh-hans/brew/briss/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [opendetex](https://pkg.so/zh-hans/brew/opendetex/) - Shares pkgdb curated category or tags: cli, document-processing, productivity.
- [libvisio](https://pkg.so/zh-hans/brew/libvisio/) - Shares pkgdb curated category or tags: cli, document-processing, productivity.
- [typst](https://pkg.so/zh-hans/brew/typst/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [marp-cli](https://pkg.so/zh-hans/brew/marp-cli/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [invoice](https://pkg.so/zh-hans/brew/invoice/) - Both packages work with overlapping file formats or content types. Shared terms: cli, command-line, line, pdf, productivity.
- [fancy-cat](https://pkg.so/zh-hans/brew/fancy-cat/) - Both packages work with overlapping file formats or content types. Shared terms: cli, document, pdf, productivity.

## Combined YAML source

View the package source record on GitHub. [combined/cpdf.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cpdf.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
