public Extractor(final Logger logger){
  this.logger=logger;
  pdfConfig.setExtractInlineImages(true);
  pdfConfig.setExtractUniqueInlineImagesOnly(false);
  ocrConfig.setTimeout(Math.toIntExact(DEFAULT_OCR_TIMEOUT.to(TimeUnit.SECONDS)));
}

public Extractor ( final Logger logger ) { this . logger = logger ; pdfConfig . setExtractInlineImages ( true ) ; pdfConfig . setExtractUniqueInlineImagesOnly ( false ) ; ocrConfig . setTimeout ( Math . toIntExact ( DEFAULT_OCR_TIMEOUT . to ( TimeUnit . SECONDS ) ) ) ; }
create a new extractor , which will ocr images by default if tesseract is available locally , extract inline images from pdf files and ocr them and use pdfbox ' s non - sequential pdf parser .
