From c48c415d03e21902d1521bd2219f1d0e2790dd73 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 19 Oct 2021 20:44:46 +0200 Subject: [PATCH] wip #4804 @0.25 --- src/Document.php | 2 +- src/Document/PDF.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Document.php b/src/Document.php index 04566c7..83f7957 100644 --- a/src/Document.php +++ b/src/Document.php @@ -144,7 +144,7 @@ class Document */ 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 diff --git a/src/Document/PDF.php b/src/Document/PDF.php index 853456e..7c8a9d2 100644 --- a/src/Document/PDF.php +++ b/src/Document/PDF.php @@ -17,13 +17,13 @@ class PDF extends Document 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(); -- 2.39.5