Origami is a framework for PDF documents manipulation written in pure Ruby. It can be used to analyze or create malicious PDF documents. Being written in Ruby, the core engine of Origami is totally scriptable and can be used for automated tasks on large sets of documents. A GTK graphical interface is also available for manually browsing through the inner objects of a PDF document.
The philosophy behind Origami is the following:
Support for both reading and writing to PDF documents. Origami is able to create documents from scratch, read existing documents and modify them. Each new feature added must be compatible with reading and writing.
Handling a large subset of the PDF specification. Origami focuses on features from the PDF specification which can be used to obfuscate documents or provide offensive capabilities. Being flexible and extensible. Origami can be used in many ways, even if you are new to the Ruby language.
Origami supports many advanced features of the PDF specification, such as:
New features
Here is the list of new features added in this version:
The philosophy behind Origami is the following:
Support for both reading and writing to PDF documents. Origami is able to create documents from scratch, read existing documents and modify them. Each new feature added must be compatible with reading and writing.
Handling a large subset of the PDF specification. Origami focuses on features from the PDF specification which can be used to obfuscate documents or provide offensive capabilities. Being flexible and extensible. Origami can be used in many ways, even if you are new to the Ruby language.
Origami supports many advanced features of the PDF specification, such as:
- Compression filters and predictor functions
- Encryption
- Digital signatures
- Object streams
- File attachments
- AcroForms and XFA forms
- PDF actions and annotations (including Flash)
- Origami is open-source and distributed under the LGPL license.
New features
Here is the list of new features added in this version:
- Support for AES256 encryption/decryption of documents.
- Support for G3 unidimensional encoding/decoding of CCITTFax streams.
- Support for TIFF predictor functions.
- Enhanced support for Ruby 1.9.
- Can now be installed as a gem.
- Added methods for browsing pages and name trees.
- Added a Ruby shell for quick document analysis.
- Added a set of useful tools built upon Origami (pdfdecrypt, pdfencrypt, pdfdecompress, pdfextract, pdfmetadata, pdfcocoon, pdfcop, pdf2graph, pdf2ruby...)
- Lots of bug fixes.
Usage Guide : https://esec-lab.sogeti.com/dotclear/index.php?post/2011/05/24/Origami-1.0-released%21