Repository is archived
No commit activity in last 3 years
No release in over 3 years
Use pdftk to split pdfs on bookmark level. Limited functionality, see README.md for more info.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

pdf_split_bookmark-pdftk

This utility reads bookmarks using PDFTK, then splits based on a specified bookmark level.

You will need the pdftk binaries from Sid Steward (http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/).

Caveat: Bookmarks should start a new page.

Usage:

pdf = PDF.new('foo.pdf')
pdf.split_by_bookmark_at_level(2)

Optionally specify an output directory:

pdf.split_by_bookmark_at_level(2, '/dev/null')