🍺 BREW Explorer

← all formulae

libharu

brew install libharu v2.4.6 Zlib

C library for generating PDF files with text, images, fonts, and encryption.

Why you might care

libharu is a lightweight, pure-C PDF generation library with minimal dependencies, making it ideal for embedding PDF creation into C/C++ applications. It supports images, TrueType fonts, encryption, and CJK encodings without requiring a heavy document processor. Use it when you need programmatic PDF generation in a build dependency or application runtime.

Categories

Alternatives

libpoppler pdflib fpdf reportlab
2.0k
30-day installs · #980
8.8k
90-day · #863
27.7k
365-day · #919
2.0k
★ GitHub stars · updated 2mo ago

Runtime dependencies

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "libpoppler",
    "pdflib",
    "fpdf",
    "reportlab"
  ],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [
    "library",
    "pdf-tool"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "libpng"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Library for generating PDF files",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:41:14+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "libharu",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-03-26T20:36:21Z",
  "github_readme_excerpt": "# Haru Free PDF Library [![Build Status](https://github.com/libharu/libharu/actions/workflows/cmake.yml/badge.svg)](https://github.com/libharu/libharu/actions/workflows/cmake.yml)\n\n  **URL http://libharu.org/**\n\n  **Copyright 2000-2006 (c) Takeshi Kanno**\n\n  **Copyright 2007-2009 (c) Antony Dovgal et al.**\n\nSee INSTALL for instructions on how to install libHaru.\n\n\n# What is Haru Free PDF Library?\n\nHaru is a free, cross platform, open-sourced software library for generating \nPDF. It supports the following features.\n\n   1. Generating PDF files with lines, text, images.\n   2. Outline, text annotation, link annotation.\n   3. Compressing document with deflate-decode.\n   4. Embedding PNG, Jpeg images.\n   5. Embedding Type1 font and TrueType font.\n   6. Creating encrypted PDF files.\n   7. Using various character set (ISO8859-1\\~16, MSCP1250\\~8, KOI8-R).\n   8. Supporting CJK fonts and encodings.\n\nYou can add the feature of PDF creation by using Haru without understanding \ncomplicated internal structure of PDF.\n\n\n# The differences from the previous version \n\n\nThe biggest differences are that all code is written in C. \nTo our regret, because internal structures changed greatly, The API is not \ncompatible with previous version.\n\nHowever, the new-version has the following advantages compared with the \nprevious version.\n\n 1. Supported shared-library build.\n    A new-version library is able to be built as shared-library.\n 2. The performance has been greatly improved.\n    A new-version library is about 4-15 times faster than a previous version. \n 3. Supported more features.\n    TrueType font, 128 bit encryption, arc function, and so on.\n\n\n# Supporting platforms\n\nHaru is written in ANSI-C and should compile easily with any compliant C \ncompiler.\nI inspected Haru in the following environment and make files for these \nenvironments are included in a package.\n\n   1. Cygwin + GCC (Microsoft Windows)\n   2. Cygwin + MinGW (Microsoft Windows)\n   3. MSYS + MinGW (Microsoft Windows)\n   3. Mi",
  "github_repo": "libharu/libharu",
  "github_stars": 1979,
  "github_topics": [],
  "homepage": "https://github.com/libharu/libharu",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 1961,
  "installs_365d": 27734,
  "installs_90d": 8754,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Zlib",
  "llm_generated_at": "2026-06-20T23:48:14+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "libharu",
  "oldnames": [],
  "one_liner": "C library for generating PDF files with text, images, fonts, and encryption.",
  "optional_dependencies": [],
  "rank_30d": 980,
  "rank_365d": 919,
  "rank_90d": 863,
  "raw_hash": "4070fdadc2d7a27e",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/lib/libharu.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "2.4.6",
  "versioned_formulae": [],
  "why_use_this": "libharu is a lightweight, pure-C PDF generation library with minimal dependencies, making it ideal for embedding PDF creation into C/C++ applications. It supports images, TrueType fonts, encryption, and CJK encodings without requiring a heavy document processor. Use it when you need programmatic PDF generation in a build dependency or application runtime."
}