namespace Fluidbook\Farmer;
+use Fluidbook\Tools\Document;
use Fluidbook\Tools\Jobs\ProcessFile;
+use Fluidbook\Tools\Jobs\ProcessPage;
class Process extends ProcessFile
{
protected $mobileRatio = 1;
protected $resolutionRatio = 1;
protected $filespath;
+ protected $_job = null;
public function __construct($out, $page, $resolutionRatio, $mobileRatio, $format = 'jpg', $resolution = 150, $withGraphics = true, $withTexts = true, $version = 'html', $force = false)
{
return str_replace(self::LOCAL_ROOT, self::DISTANT_ROOT, $this->getPath($this->isForce()));
}
+ public function getJob(): ProcessPage
+ {
+ if (null === $this->job) {
+ $this->job = new ProcessPage(new Document($this->getOut() . '/original.pdf'), $this->getPage());
+ }
+ return parent::getJob();
+ }
+
}
\ No newline at end of file