PDF Creation

HexaPDF includes facilities for creating PDF documents from scratch, using a canvas object for drawing and outputting text.

PDF Manipulation

HexaPDF can read existing documents and modify them in various ways, e.g. adding, modifying or deleting pages, annotations, files, ...

PDF File Merging

HexaPDF can be used to merge multiple PDF files together. Advanced merge facilities can be built on the existing infrastructure.

Content Extraction

HexaPDF allows extracting various parts of a PDF file, e.g. text from a page, attached files, embedded images, ...

PDF Encryption

HexaPDF supports all password based encryption mechanisms, including AES 256bit, when reading and writing PDF files.

PDF Optimization

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.

See Contributing for more details.

If you want to use HexaPDF in a commercial setting please send me an e-mail. Note that there is currently no commercial license for HexaPDF available.

Ready to start with HexaPDF?

 API Documentation