]> _ Git - cubist_pdf.git/commitdiff
wip #4808 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 19 Oct 2021 16:44:11 +0000 (18:44 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 19 Oct 2021 16:44:11 +0000 (18:44 +0200)
composer.json
src/CommandLine/FWSTK.php
src/Document.php

index 921cad0766c76e02179f737a22ce11e59cad459d..de312dfd52fd4fe8c975789576f100fe412d7a6b 100644 (file)
@@ -23,6 +23,7 @@
     "php": ">=7.3.0",
     "ext-json": "*",
     "ext-dom": "*",
+    "ext-libxml": "*",
     "laravel/framework": "~5.8|^6.0|^7.0|^8.0",
     "cubist/util": "dev-master"
   },
index dc4fe3c7039372dcd05d01bec5e3195c57d00b21..e80ebea92021b5c5468854b68a8817c8f97317db 100644 (file)
@@ -4,7 +4,6 @@ namespace Cubist\PDF\CommandLine;
 
 use Cubist\PDF\PDFTools;
 use Cubist\Util\CommandLine;
-use Fluidbook\Tools\FluidbookTools;
 
 class FWSTK extends CommandLine
 {
index 2a6b401a1cc5eb9491641856f4dac8eac964c3f0..53b49577158976e1494fea2c362ce5cb87b77e70 100644 (file)
@@ -3,9 +3,8 @@
 namespace Cubist\PDF;
 
 use Cubist\Util\Text;
-use Fluidbook\Tools\CommandLine\FWSTK;
-use Fluidbook\Tools\Jobs\ProcessFile;
-use Fluidbook\Tools\Jobs\ProcessPage;
+use Cubist\PDF\CommandLine\FWSTK;
+
 
 class Document
 {
@@ -147,32 +146,6 @@ class Document
         return $this->width;
     }
 
-    /**
-     * @param ProcessFile[] $files
-     * @param array $pages
-     * @param bool $sync
-     */
-    public function processPages($files, $pages, $sync = false)
-    {
-        start_measure('Process pages (doc)');
-        foreach ($pages as $i) {
-            $this->processPage($i, $files, $sync);
-        }
-        stop_measure('Process pages (doc)');
-    }
-
-    /**
-     * @param $page int
-     * @param $dest string
-     * @param $files ProcessFile[]
-     * @param false $sync
-     */
-    public function processPage($page, $files, $sync = false)
-    {
-        $dispatchFunction = $sync ? 'dispatchSync' : 'dispatch';
-        ProcessPage::$dispatchFunction($this, $page, $files);
-    }
-
     public function processLinks()
     {
         PDFTools::extractLinks($this->getPDFInput(), $this->getConvertPath());
@@ -180,12 +153,8 @@ class Document
 
     public function processTexts()
     {
-        start_measure('Extract texts');
         PDFTools::extractTexts($this->getPDFInput(), $this->getConvertPath());
-        stop_measure('Extract texts');
-        start_measure('Get highlights data');
         PDFTools::extractHighlightsData($this->getPDFInput(), $this->getConvertPath());
-        stop_measure('Get highlights data');
     }
 
     public function getPageNumbers()