Skip to content

Instantly share code, notes, and snippets.

View mihaisoloi's full-sized avatar

Mihai Soloi mihaisoloi

  • Bucharest, Romania
View GitHub Profile
@mihaisoloi
mihaisoloi / agregare.sh
Created June 1, 2012 21:36
Script for parsing csv table of contents and aggregating a number of pdfs with bookmarks using pdftk and gs
#!/bin/bash
files=""
options=""
title=""
pages=0
page_number=1
i=1
for f in TCST\ *.pdf
do
pages=$(pdfinfo "$f" | grep Pages | awk '{print $2}')