# 使用 Homebrew, Nix 安装 svg2pdf

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

## 安装

```sh
sudo av install brew:svg2pdf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install svg2pdf
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#svg2pdf
```

  证据: nixpkgs package indexes: pkgs/by-name/sv/svg2pdf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:svg2pdf
- **软件包管理器:** Homebrew
- **版本:** 0.1.3
- **来源摘要:** Renders SVG images to a PDF file (using Cairo)
- **主页:** <https://cairographics.org/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- svg2pdf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.1.3
## 项目历史与用法

svg2pdf is a tiny command-line SVG-to-PDF converter built around librsvg and Cairo. Its upstream history is short, but it is representative of small Unix graphics utilities that survive because they do one conversion job cleanly in scripts.

### 项目历史

The official freedesktop cgit summary describes svg2pdf as a simple demo showing how to use librsvg and Cairo to render SVG to PDF. The first commit, dated September 7, 2007, imported a small svg2pdf program rescued from cairo/test, where it was not being used and had been deleted.

The source file documents compilation with `pkg-config` against `librsvg-2.0` and `cairo-pdf`, accepts an input SVG and output PDF path, and renders through a Cairo PDF surface.

### 采用历史

svg2pdf appears as a small packaged utility rather than a large standalone project. The input package facts list Homebrew and Nix package names, matching its role as a convenient command-line wrapper around already-packaged graphics libraries.

### 使用方式

Usage is intentionally narrow: `svg2pdf input_file.svg output_file.pdf`. That simplicity makes it useful in build scripts, documentation pipelines, and packaging tests where a headless SVG-to-PDF conversion is enough.

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

Package nerds care about tools like svg2pdf because they are thin, inspectable glue over shared libraries. They exercise Cairo and librsvg availability, avoid GUI dependencies, and fit naturally into Makefiles and reproducible build steps.

### 时间线

- 2007: svg2pdf is imported into freedesktop cgit from cairo/test.
- 2007: Follow-up commits add a Makefile, update licensing text, and remove forced white background painting.

### Related projects

- svg2pdf is closely related to Cairo, librsvg, cairo-pdf, cairo/test, and the sibling svg2png utility.

### 来源

- <https://cgit.freedesktop.org/~cworth/svg2pdf/>
- <https://cgit.freedesktop.org/~cworth/svg2pdf/commit/?id=a6c5d07827333b9b45af6bcc7b30855bdae677b7>
- <https://cgit.freedesktop.org/~cworth/svg2pdf/log/>
- <https://cgit.freedesktop.org/~cworth/svg2pdf/plain/svg2pdf.c>
- input source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Nix - svg2pdf: normalized package name match | nixpkgs package indexes: pkgs/by-name/sv/svg2pdf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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