title: Ruby PDF:Toolkit using pdftotext
body: <p>I'm converting pdf files in my Ruby project.  I'm using the pdf toolkit gem for this.  </p>
  
  <p>The documentation shows how you can use pdftotext
      pdftotext(file,outfile = nil,&amp;block)</p>
  
  <p>In my project I am converting a PDF file without any arguments and can just do this:
      PDF::Toolkit.pdftotext("file.pdf", "file.txt) </p>
  
  <p>If I run it from the command line, I can preserve the layout by passing that param
      pdftotext -layout file.pdf</p>
  
  <p>What is the correct syntax to achieve this with PDF::Toolkit?</p>
  
  <p>Thanks!</p>