View Single Post
Old 01-23-2009, 07:41 PM   #13
nekokami
fruminous edugeek
nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.
 
nekokami's Avatar
 
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
Quote:
Originally Posted by Devlar View Post
If you don't have linux you can always split files with pdftk. Just cut the double sided into two files, odd.pdf and even.pdf then run:

pdftk even.pdf burst output %04d_A.pdf

pdftk odd.pdf burst output %04d_B.pdf

pdftk *_?.pdf cat output combined.pdf

It'll take your odd and even pages and put them in the right order.
Thanks! There is a correction, however. I suppose this could depend on the files, but I had to do this:

pdftk odd.pdf burst output %04d_A.pdf

pdftk even.pdf burst output %04d_B.pdf

pdftk *_?.pdf cat output combined.pdf

For those who want to understand what this set of arcane commands means, you're telling pdftk to take the two pdf documents and split them into one pdf file per page. They get names like 0001_A.pdf, 0002_A.pdf, etc from the "odd" document, then 0001_B.pdf, 0002_B.pdf, etc. for the "even" document. If you list those alphabetically, the A's will come before the B's of the same number, so the "cat output" command puts them all back together in the right order. (You'll want to delete all the extra PDF documents afterwards, probably.)

As far as how to split the PDF document into A and B parts, I used Acrobat's Crop command. First I cropped to just keep the left half, and saved that as "odd.pdf", then I did the same but only kept the right half, as "even.pdf".
nekokami is offline   Reply With Quote