title: How to thumbnail a multi-page pdf with paperclip
body: <p>I'd like to have Paperclip create 2 thumbnails for each page of a multipage PDF file that is uploaded.</p>
  
  <p>I'm running Paperclip 2.3.1.1 and using this in my Asset model:</p>
  
  <pre><code>    has_attached_file :asset,
                    :styles =&gt; { :medium =&gt; "800x600&gt;", :thumb =&gt; "100x100&gt;" }
  </code></pre>
  
  <p>So, when I upload a 3 page pdf file, I was hoping this would create 2 thumbs per page (one at 800x600 and a smaller image at 100x100).  Instead, I get a 3 folders created (thumb, medium, original) - the original folder contains the origianl pdf file, while thumb and medium each contain a pdf with just the first page of the pdf all pixelated.</p>
  
  <p>What do I need to do to get paperclip to create 2 thumbs for each page of the pdf?  Ideally, I'd like one image per page like this (6 images created):</p>
  
  <hr>
  
  <p>assets/1/medium/file-0.png</p>
  
  <p>assets/1/medium/file-1.png</p>
  
  <p>assets/1/medium/file-2.png</p>
  
  <p>assets/1/thumb/file-0.png</p>
  
  <p>assets/1/thumb/file-1.png</p>
  
  <p>assets/1/thumb/file-2.png</p>
  
  <p>Does anyone know how to do this?  Do I need a custom processor?  If so, what would the processor look like?</p>
  
  <p>Thanks.</p>