title: How do I use CAM::PDF to extract all pages?
body: <pre><code>#!/perl/bin/perl -w
  use CAM::PDF;
  use CAM::PDF::PageText;
  
  $filename = "test.pdf";
  
  my $pdf = CAM::PDF-&gt;new($filename);
  my $pageone_tree = $pdf-&gt;getPageContentTree(2);
  $text = CAM::PDF::PageText-&gt;render($pageone_tree);
  #$text =~ s/regex/modify/gi;
  print $text;
  </code></pre>
  
  <p>With the code above I can extract pdf data into a text file, but I can only get one page.  I would like to get every single page within my pdf.</p>
  
  <p>I know it is in the line containing</p>
  
  <pre><code>my $pageone_tree = $pdf-&gt;getPageContentTree(2);
  </code></pre>
  
  <p>I am not to sure how to change it.  I have even tried (1..200) and it only give me the first page.  Is anyone familiar with using CAM::PDF??</p>