[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-Modules] Text::PDF



Hi-
	I have installed the module Text::PDF, along with the port of Compress::Zlib. Basically, I need to be able to open PDF files users send to me and extract info to be put into a database. I installed both modules using Chris's installme droplet. When trying to run a test script, I get the following errors:

# Constant subroutine MAGIC1 redefined.
File 'fileserver1:MacPerl f:site_perl:Compress:Zlib.pm'; Line 263
# Constant subroutine MAGIC2 redefined.
File 'fileserver1:MacPerl f:site_perl:Compress:Zlib.pm'; Line 264
# Constant subroutine OSCODE redefined.
File 'fileserver1:MacPerl f:site_perl:Compress:Zlib.pm'; Line 265
# Invalid argument.
File '<AppleEvent>'; Line 14

Here is the code:

	use Text::PDF::File;
	Text::PDF::File->new;
	$f = Text::PDF::File->open($file,1) || die ($!);
	$f->close;

Has anyone had any success with these 2 modules (Zlib is used by PDF)? Any help would be appreciated. Thanks.

-Dan

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org