HexaPDF is a pure-Ruby library and command-line application for creating, manipulating, merging, securing, signing and optimizing PDF files.