in reply to Reading output of external program without Shell
Apropos pdftotext. What about CAM::PDF to extract the text? As far as i remember it comes with such a feature. Regards, Karl
Update: Just found an example on my box. I didn't remember that it is so simple:
#!/usr/bin/env perl use strict; use warnings; use CAM::PDF; use feature qw(say); my $file = shift; my $pdf = CAM::PDF->new($file); say $pdf->getPageText(1); __END__
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Reading output of external program without Shell
by Anonymous Monk on Nov 15, 2017 at 18:27 UTC | |
by karlgoethebier (Abbot) on Nov 15, 2017 at 19:08 UTC | |
by haukex (Archbishop) on Nov 15, 2017 at 20:38 UTC | |
by karlgoethebier (Abbot) on Nov 16, 2017 at 11:34 UTC | |
by haukex (Archbishop) on Nov 16, 2017 at 12:09 UTC | |
|