I have tried using a gem called docsplit and got nothing but errors; even when trying the documentation examples, they wouldnt work on my windows machine.
I ran across a blog post giving me hope that this could be done in pdftk
:
here
I have a pdf named multi_page.pdf
I need to split multi_page.pdf
into many single page PDF's and output the many single page PDF's in a sub directory called destination
here is where I am, and its definitely not working
source_path = 'C:\Users\ALilland\Documents\split_test\one_page\destination'
source_file = 'C:\Users\ALilland\Documents\split_test\one_page\multi_page.pdf'
FileUtils.cd(source_path)
`pdftk #{source_file} burst output page_%02d.pdf`