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
{
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());
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()