$ gem install hexapdf
Latest version 0.13.0 released on 2020-11-15
HexaPDF is AGPL Open Source, a commercial license is available Buy HexaPDF
HexaPDF includes facilities for creating PDF documents from scratch, using a canvas object for drawing and outputting text.
HexaPDF can read existing documents and modify them in various ways, e.g. adding, modifying or deleting pages, annotations, files, ...
HexaPDF can be used to merge multiple PDF files together. Advanced merge facilities can be built on the existing infrastructure.
HexaPDF allows extracting various parts of a PDF file, e.g. text from a page, attached files, embedded images, ...
HexaPDF supports all password based encryption mechanisms, including AES 256bit, when reading and writing PDF files.
HexaPDF writes output PDF files as compactly as possible. Additionally, it can optimize existing PDF files to reduce their file size.
HexaPDF is licensed under the GNU Affero General Public License (AGPL), an open source license. It allows you to use HexaPDF for free as long as you adhere to the license.
The AGPL puts some restrictions in place to make sure that the community benefits from changes to the code. For example, if you use HexaPDF in an application and distribute that application, you have to make the source code of the whole application available under the AGPL. The same applies if your application is used over a network.
If you want to use HexaPDF in a commercial setting, you need to purchase a commercial license.
See Contributing for more details.
Ready to start with HexaPDF? Tutorials