use Cubist\PDF\PDFTools;
use Cubist\Util\Files\Files;
+use Illuminate\Support\Facades\Log;
class ProcessFile extends \Fluidbook\Tools\Jobs\ProcessFile {
protected const DISTANT_ROOT = '/application/fluidbook/docs/';
}
public function getPdf(): string {
- return Files::firstThatExists($this->getOut() . '/crop.pdf', $this->getOut() . '/fixed.pdf', $this->getOut() . '/original.pdf');
+ $res = Files::firstThatExists($this->getOut() . '/crop.pdf', $this->getOut() . '/fixed.pdf', $this->getOut() . '/original.pdf');
+ Log::warning('not pdf in ' . $this->getOut());
+ return $res;
}
public function getSplittedPDFPage() {