NAME

PDF::OCR::Thorough::Cached - save ocr to text file for easy retrieval

DESCRIPTION

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

SYNOPSIS

my $p = new PDF::OCR::Thorough::Cached('/abs/path/file.pdf');
$p->set_abs_cache('/tmp/cache');

my $text = $p->get_text;

set_abs_cache()

argument is a directory that will be the cache, defaults to '/tmp/PDF-OCR-Thorough-Cached'

abs_cache()

returns directory where we cache

abs_cached()

returns abs path to where cached txt of pdf should be

is_cached()

returns boolean does the cached version exist on disk?

SEE ALSO

PDF::OCR

PDF::OCR::Thorough

tesseract

AUTHOR

Leo Charre leocharre at cpan dot org