PDF::OCR::Thorough::Cached - save ocr to text file for easy retrieval
This is just like PDF::OCR::Thorough, only the text is saved to a text file, so subseuent retrievals are snap quick. This inherits all the methods if PDF::OCR::Thorough
my $p = new PDF::OCR::Thorough::Cached('/abs/path/file.pdf'); $p->set_abs_cache('/tmp/cache'); my $text = $p->get_text;
argument is a directory that will be the cache, defaults to '/tmp/PDF-OCR-Thorough-Cached'
returns directory where we cache
returns abs path to where cached txt of pdf should be
returns boolean does the cached version exist on disk?
PDF::OCR
PDF::OCR::Thorough
tesseract
Leo Charre leocharre at cpan dot org
To install PDF::OCR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PDF::OCR
CPAN shell
perl -MCPAN -e shell install PDF::OCR
For more information on module installation, please visit the detailed CPAN module installation guide.