<?xml version="1.0" encoding="windows-1252"?>
<node id="529738" title="Get Page No. in PDF File" created="2006-02-12 23:29:01" updated="2006-02-12 18:29:01">
<type id="115">
perlquestion</type>
<author id="373324">
gopalr</author>
<data>
<field name="doctext">
&lt;p&gt;Hi Monks,

&lt;p&gt;PDF File Contains Page No as follows:
&lt;code&gt;162(1 of 7)
163(2 of 7)
164(3 of 7)
165(4 of 7)
166(5 of 7)
167(6 of 7)
168(7 of 7)
&lt;/code&gt; 

&lt;p&gt;I can get the PDF page number (i.e. 1 to 7) by using CAM::PDF Module.
&lt;code&gt;
my $doc = CAM::PDF-&gt;new($file) || die "$CAM::PDF::errstr\n";
my $pages = $doc-&gt;numPages();
&lt;/code&gt;

&lt;p&gt;Please advice me that how to get the actual page number i.e. 162 to 168.
&lt;p&gt;Thanks,
&lt;br&gt;Gopal R.
</field>
</data>
</node>
