in reply to pdf and ppt to text
Prerequisites =>
wish from Tcl
catppt from catdoc
Module Prerequisites =>
Once the prereqs are satisfied, run this:#!/usr/bin/perl use strict; use warnings; use CPAN; CPAN::Shell->install(qw( XML::Twig Archive::Zip File::Temp Time::Local IO::File Any::Moose Try::Tiny Text::Extract::Word OpenOffice::OODoc File::LibMagic RTF::Parser HTML::FormatText::WithLinks CAM::PDF Text::FromAny));
#!/usr/bin/perl use strict; use warnings; use File::Fetch; use Text::FromAny; my $ff1 = File::Fetch->new( uri => 'http://cpansearch.perl.org/src/KARMAN/SWISH-Filter-0 +.15/t/test.ppt'); my $ff2 = File::Fetch->new( uri => 'http://cpansearch.perl.org/src/KARMAN/SWISH-Filter-0 +.15/t/test.pdf'); my $where1 = $ff1->fetch( ) or die $ff1->error; my $where2 = $ff2->fetch( ) or die $ff2->error; my $tFromAny= Text::FromAny->new( file => 'test.pdf'); my $text = $tFromAny->text; print $text, "\n"; system("/usr/local/bin/catppt -lV"); print "\n"; system("/usr/local/bin/catppt test.ppt");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pdf and ppt to text
by sarvan (Sexton) on Aug 04, 2011 at 10:42 UTC | |
by Anonymous Monk on Aug 04, 2011 at 11:04 UTC | |
by sarvan (Sexton) on Aug 04, 2011 at 11:47 UTC | |
by Corion (Patriarch) on Aug 04, 2011 at 12:37 UTC | |
by Anonymous Monk on Aug 04, 2011 at 13:07 UTC |