Burst a Single PDF Document into Single Pages and Report its Data to doc_data.txt

pdftk mydoc.pdf burst
Require the pdftk package It ll split each page in your pdf file , into a new pdf file and report info on doc_data.txt
Sample Output
gnu@robby:~/garde$ ls
page.de.garde.tp.constit.pdf 

gnu@robby:~/garde$ pdftk page.de.garde.tp.constit.pdf burst
gnu@robby:~/garde$ ls
doc_data.txt                  pg_0003.pdf  pg_0007.pdf  pg_0011.pdf
page.de.garde.tp.constit.pdf  pg_0004.pdf  pg_0008.pdf  pg_0012.pdf
pg_0001.pdf                   pg_0005.pdf  pg_0009.pdf  pg_0013.pdf
pg_0002.pdf                   pg_0006.pdf  pg_0010.pdf


gnu@robby:~/garde$ cat doc_data.txt 
InfoKey: Creator
InfoValue: TeX
InfoKey: Producer
InfoValue: pdfTeX-1.40.3
InfoKey: PTEX.Fullbanner
InfoValue: This is pdfTeX using libpoppler, Version 3.141592-1.40.3-2.2 (Web2C 7.5.6) kpathsea version 3.5.6
InfoKey: ModDate
InfoValue: D:20091110095403+01'00'
InfoKey: CreationDate
InfoValue: D:20091110095403+01'00'
PdfID0: f61291d4e7e7cac3cd595b6aed174d
PdfID1: f61291d4e7e7cac3cd595b6aed174d
NumberOfPages: 13


3
By: eastwind
2009-11-10 09:00:50

1 Alternatives + Submit Alt

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: