"prefer-stable": true,
"require": {
"php": ">=8.2",
- "illuminate/log": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0",
"fluidbook/tools": "dev-master"
}
}
\ No newline at end of file
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 {
$res = Files::firstThatExists($this->getOut() . '/crop.pdf', $this->getOut() . '/fixed.pdf', $this->getOut() . '/original.pdf');
- Log::warning('no pdf in ' . $this->getOut());
+ if(null===$res) {
+ echo 'no pdf in ' . $this->getOut();
+ }
return $res;
}