All formats

PDF libraries for Ruby

A common combination is Prawn to generate pages, CombinePDF to merge them or stamp them onto existing files, and pdf-reader to read text. HexaPDF covers all of these if the AGPL or a license fee is acceptable.