$ gem install hexapdf
Latest version 0.22.0 released on 2022-03-26
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.
Ready to start with HexaPDF? Tutorials
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. Additionally, there is also a commercial 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. Please refer to the license for details.
If you don't want to adhere to the AGPL or can't (e.g. because you can't make the code that uses HexaPDF available under the AGPL), then you need to purchase a commercial license.