Install CAM::PDF::PageText

Install CAM::PDF::PageText

am 11.03.2007 17:08:52 von Phil Richcreek

My perl script contains
______________________________________
#usr/local/bin/perl

use CAM::PDF;
use CAM::PDF::PageText;

$filename='C:\blah-blah-blah.pdf';

my $pdf = CAM::PDF->new($filename);
my $pageone_tree = $pdf->getPageContentTree(1);
print CAM::PDF::PageText->render($pageone_tree);
_________________________________________

When I run this, I get
______________________________________________
Can't locate CAM/PDF/PageText.pm in @INC (@INC contains: C:\Program
Files\Active
State Perl Dev Kit 6.0\lib\ C:/Perl/lib C:/Perl/site/lib .) at dumppdf.pl
line 4
_______________________________________________

CAM::PDF is already installed.
When I try to install CAM::PDF::PageText, I get
______________________________________
Repositories:
[1] UWINN
[2] ActiveState PPM2 Repository
[3] ActiveState Package Repository
[4] CPAN
[5] perlmonks 5.8

C:\blah-blah-blah\Perl>ppm install CAM::PDF::PageText
Searching for 'CAM::PDF::PageText' returned no results. Try a broader search
first.
________________________________________

Should I be using some other repository than the ones listed above? I seem
to remember a similar problem before, having something to do with PDK. I
installed the trial version of PDK at one time, but it has expired. Do I
need to remove it?

TIA,

Phil

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Install CAM::PDF::PageText

am 11.03.2007 20:04:12 von Randy Kobes

On Sun, 11 Mar 2007, Phil Richcreek wrote:

> My perl script contains
> ______________________________________
> #usr/local/bin/perl
>
> use CAM::PDF;
> use CAM::PDF::PageText;
>
> $filename='C:\blah-blah-blah.pdf';
>
> my $pdf = CAM::PDF->new($filename);
> my $pageone_tree = $pdf->getPageContentTree(1);
> print CAM::PDF::PageText->render($pageone_tree);
> _________________________________________
>
> When I run this, I get
> ______________________________________________
> Can't locate CAM/PDF/PageText.pm in @INC (@INC contains: C:\Program
> Files\Active
> State Perl Dev Kit 6.0\lib\ C:/Perl/lib C:/Perl/site/lib .) at dumppdf.pl
> line 4
> _______________________________________________
>
> CAM::PDF is already installed.
> When I try to install CAM::PDF::PageText, I get
> ______________________________________
> Repositories:
> [1] UWINN
> [2] ActiveState PPM2 Repository
> [3] ActiveState Package Repository
> [4] CPAN
> [5] perlmonks 5.8
>
> C:\blah-blah-blah\Perl>ppm install CAM::PDF::PageText
> Searching for 'CAM::PDF::PageText' returned no results. Try a broader search
> first.

The names of ppm packages correspond to the CPAN
distribution names, which, especially for distributions
that provide a number of modules, are not always
named in terms of the included modules. According to
http://cpan.uwinnipeg.ca/module/CAM::PDF::PageText
CAM::PDF::PageText is contained in the most recent
version of the CAM-PDF package. It may be that
you installed an earlier version of CAM-PDF; for example,
http://search.cpan.org/~clotho/CAM-PDF-1.01/
doesn't provide CAM::PDF::PageText.

--
best regards,
Randy Kobes
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs