Pdfobjflow

From aldeid
Jump to navigation Jump to search

Description

This program is meant to be used with pdf-parser from Didier Stevens.

It reads the output from pdf-parser and creates the map of the objects flows under the form of a DOT file. You can then use the dot utility to export an image (e.g. PNG file).

Installation

Prerequisites

  1. First install pdf-parser
  2. You will also need pydot:
$ sudo aptitude install python-pydot

pdfobjflow

$ git clone https://[email protected]/sebastiendamaye/pdfobjflow.git
$ cd pdfobjflow/
$ chmod +x pdfobjflow.py

Usage example

$ ./pdf-parser pdf.pdf | ./pdfobjflow.py

The above command will generate 2 files: pdfobjflow.dot and pdfobjflow.png. On Debian, you can open the *.png file as follows:

$ eog pdfobjflow.png

Comments