title: Perl how to get PDF word Count
body: <p>I got full word count in PDF. But I want to get Pdf word count except header,footer and Folios.
  Please help thanks in advance.</p>
  
  <pre><code>use strict;
  use warnings;
  use CAM::PDF;
  use CAM::PDF::PageText;
  my $filename = shift;
   my $pdf = CAM::PDF-&gt;new($filename);
     my $pageone_tree = $pdf-&gt;getPageContentTree(1);
     my $count;
   my $cnt = CAM::PDF::PageText-&gt;render($pageone_tree);
   print"$cnt";
  </code></pre>