# Install svg2pdf with Homebrew, Nix

Renders SVG images to a PDF file (using Cairo). Version 0.1.3 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install svg2pdf
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:svg2pdf
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/svg2pdf>
- **Version:** 0.1.3
- **Source summary:** Renders SVG images to a PDF file (using Cairo)
- **Homepage:** <https://cairographics.org/>
- **Repository:** <https://cgit.freedesktop.org/~cworth/svg2pdf>
- **Upstream docs:** <https://cgit.freedesktop.org/~cworth/svg2pdf/tree>
- **License:** HPND-sell-variant
- **Source archive:** <https://cairographics.org/snapshots/svg2pdf-0.1.3.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- svg2pdf (cli)
- svg2pdf (alias)

## Dependencies

- cairo
- jpeg-turbo
- libpng
- libsvg
- libsvg-cairo

## Build dependencies

- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.1.3
- Local data: ok
- Upstream repository: https://cairographics.org/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [cairo](https://www.automicvault.com/pkg/brew/cairo/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libpng](https://www.automicvault.com/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libemf2svg](https://www.automicvault.com/pkg/brew/libemf2svg/) - Shares av.db curated category or tags: cli, conversion, graphics, media, svg.
- [batik](https://www.automicvault.com/pkg/brew/batik/) - Shares av.db curated category or tags: cli, graphics, media, svg.
- [dicebear](https://www.automicvault.com/pkg/brew/dicebear/) - Shares av.db curated category or tags: cli, graphics, media, svg.
- [fig2dev](https://www.automicvault.com/pkg/brew/fig2dev/) - Shares av.db curated category or tags: cli, conversion, graphics, media.
- [librsvg](https://www.automicvault.com/pkg/brew/librsvg/) - Shares av.db curated category or tags: cairo, cli, graphics, media, svg.
- [libwmf](https://www.automicvault.com/pkg/brew/libwmf/) - Shares av.db curated category or tags: cli, conversion, graphics, media.
- [pdf2svg](https://www.automicvault.com/pkg/brew/pdf2svg/) - Shares av.db curated category or tags: cairo, cli, conversion, media, pdf.
- [potrace](https://www.automicvault.com/pkg/brew/potrace/) - Shares av.db curated category or tags: cli, graphics, media, pdf, svg.
- [svg2pdf](https://www.automicvault.com/pkg/npm/svg2pdf/) - Same normalized package name appears in another local ecosystem. Shared terms: pdf, svg, svg2pdf, using.
- [svg2pdf](https://www.automicvault.com/pkg/npm/svg2pdf/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/svg2pdf.yml](https://github.com/automic-vault/db/blob/main/combined/svg2pdf.yml)


## Sources

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