title: How to use Perl CAM::PDF module to render a PDF
body: <p>I'm trying to search a remote PDF for a text string, and based on research, I installed the CAM::PDF module to my server using cPanel.</p>
  
  <p>Here is my latest failed attempt using CAM::PDF as per <a href="http://search.cpan.org/~cdolan/CAM-PDF/lib/CAM/PDF/PageText.pm#FUNCTIONS" rel="nofollow">the documentation for the CAM::PDF::PageText module</a>.  In the code below, I'm just trying to <code>print</code> as a test to see if the PDF is properly rendered.</p>
  
  <pre><code>#!/usr/bin/perl
  use cPanelUserConfig;
  
  ....
  
  use CAM::PDF;
  
  ....
  
  my $pdf = CAM::PDF-&gt;new("myfile.pdf");    
  my $contents = $pdf-&gt;getPageContentTree(1);
  print CAM::PDF::PageText-&gt;render($contents);
  </code></pre>
  
  <p>And this gives me the following error:</p>
  
  <blockquote>
    <p>Can't locate the object method "render" via package "CAM::PDF::PageText" at ...</p>
  </blockquote>