A pure Ruby library for creating, manipulating, merging, securing, and optimizing PDF files with a Ruby-esque API.
HexaPDF is a pure Ruby library for creating, manipulating, and optimizing PDF files. It provides a comprehensive set of tools for PDF generation, content extraction, encryption, digital signatures, and document composition, solving the need for a versatile PDF solution in Ruby applications.
Ruby developers who need to generate, modify, or process PDF files programmatically, especially those requiring features like forms, encryption, or high-level document layout.
Developers choose HexaPDF for its full PDF library capabilities, including reading and modifying existing PDFs, a Ruby-esque API, and extensive features like encryption, forms, and a command-line tool, making it a robust alternative to tools like pdftk or Prawn.
Versatile PDF creation and manipulation for Ruby
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports PDF creation, manipulation, extraction, encryption, forms, and optimization, making it a one-stop solution for diverse PDF needs in Ruby, as highlighted in the extensive feature list.
Provides an easy-to-use, high-level API familiar to Ruby developers, with conveniences like document composition and automatic layout, easing PDF workflow integration.
Uses lazy loading and computing to handle PDFs efficiently, producing compact files by default, which is ideal for resource-conscious applications.
Includes a `hexapdf` binary for common tasks like merging and encrypting, serving as a practical replacement for tools like pdftk, as noted in the README.
Requires Ruby 3.0 or higher, which may force upgrades for legacy systems or hinder adoption in environments with older Ruby versions.
Dual licensing under AGPL and commercial; for closed-source or networked applications, a commercial license is often necessary, adding cost and compliance overhead.
Mastering the high-level document composition and low-level canvas API can be complex compared to simpler libraries like Prawn, especially for advanced features.
HexaPDF is an open-source alternative to the following products: