public function processPages($sync = false)
{
start_measure('Process Pages');
- $out = storage_path('fluidbook/convert/' . $this->in->getHash() . '/');
+ $out = $this->getOutputPath();
Files::mkdir($out);
$this->in->processPages($out, [new ProcessFile('jpg', 'thumb'),
new ProcessFile('jpg', 150, false, true),
new ProcessFile('svg', 300, true, false),
], $sync);
stop_measure('Process Pages');
+ }
+ public function getOutputPath()
+ {
+ return storage_path('fluidbook/convert/' . $this->in->getHash() . '/');
}
public function getTexts()
{
-
+ start_measure('Process texts');
+ $this->in->processTexts($this->getOutputPath());
+ start_measure('Process texts');
}
public function getLinks()
{
-
+ start_measure('Process links');
+ $this->in->processLinks($this->getOutputPath());
+ start_measure('Process links');
}
public function writeConfig()