문제

Hi im trying to extract the content of pdf file but im facing the above problem my code is

use PDF;

use CAM::PDF;

use CAM::PDF::PageText;

my $file = "s.pdf"; 
my $pdf = CAM::PDF->new($file); 
 my $pageone_tree = $pdf->getPageContent(1);
 print CAM::PDF::PageText->render($pageone_tree);

Im getting error " getPageContent(1)" here . what went wrong in my code

도움이 되었습니까?

해결책

Try out this

my $pageone_tree = $pdf->getPageContentTree($_);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top