如何使用perl中的CPAN模块从PDF文件中提取图像?

如何使用perl中的CPAN模块从PDF文件中提取图像?,perl,Perl,我尝试了以下代码从PDF中提取图像 use strict; use warnings; use PDF::GetImages 'getimages'; my $images=getimages('getimages.pdf'); print $images; 方法名称为“pdfimages” 因此,您的代码必须如下所示: use strict; use warnings; use PDF::GetImages 'pdfimages'; my $images=pdfimages('getimag

我尝试了以下代码从PDF中提取图像

use strict;
use warnings;
use PDF::GetImages 'getimages';
my $images=getimages('getimages.pdf');
print $images;

方法名称为“pdfimages”

因此,您的代码必须如下所示:

use strict;
use warnings;
use PDF::GetImages 'pdfimages';
my $images=pdfimages('getimages.pdf');
print $images;

有关更多信息,请阅读。

以及您的问题是什么?因为我遇到了以下错误。[“getimages”不是由PDF::getimages模块导出的]。根据it exports
pdfimages
not
getimages
。我的输出如下所示。数组(0x14f7210).你能解释一下原因吗line@Jens@welcomedata pdfimages返回一个图像数组。这就是为什么会得到输出
数组(0x14f7210)
。如果实现与模块相同的功能,是否可以不使用模块@jensi。但这毫无意义。