*/
public function getIndividualDocData()
{
- return ['id' => $this->getId(), 'type' => $this->getType(), 'thumb' => $this->getTitle(), 'title' => $this->getTitle(), 'url' => $this->getUrl(), 'text' => $this->getText()];
+ return ['id' => $this->getId(), 'type' => $this->getType(), 'thumb' => $this->getThumb(), 'title' => $this->getTitle(), 'url' => $this->getUrl(), 'text' => $this->getText()];
}
}
\ No newline at end of file
if (!class_exists(\Cubist\PDF\PDFTools::class)) {
throw new \Exception('Package cubist/pdf is required in order to index PDF documents');
}
+ $this->file=$file;
}
public function process()
{
$base = $this->getIndividualDocData();
-
$doc = new \Cubist\PDF\Document($this->file);
$doc->processFullTexts();