Ruby - using pdftk to split a multi page pdf into many single page pdf's?
<p>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.</p>

<p>I ran across a blog post giving me hope that this could be done in <code>pdftk</code>:
<a href="http://ram-headerlabs.blogspot.com/2013/11/spliting-multiple-pages-single-pdf-into_14.html" rel="nofollow">here</a></p>

<p>I have a pdf named <code>multi_page.pdf</code></p>

<p>I need to split <code>multi_page.pdf</code> into <strong>many</strong> <em>single page</em> PDF's and output the many single page PDF's in a sub directory called <code>destination</code></p>

<p>here is where I am, and its definitely not working</p>

<pre><code>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`
</code></pre>