A simple tool based on poppler to extract outline from pdf file. The output format is the same as that of toc file described in this project.
git clone git@github.com:armaab/pdf-outline.git
cd pdf-outline
mkdir build && cd build
cmake ..
make
./pdf-outline <pdf-file> [> <output-file>]