public function __construct($out, $page, $resolutionRatio, $mobileRatio, $format = 'jpg', $resolution = 150, $quality = 85, $withGraphics = true, $withTexts = true, $version = 'html', $force = false) {
+ error_log('Begin process file : [' . $out . ',' . $page . ']');
+
if (stristr($out, 'usstorage')) {
$this->setRegion('US');
}
public function getPdf(): string|null {
$res = Files::firstThatExists($this->getOut() . '/crop.pdf', $this->getOut() . '/fixed.pdf', $this->getOut() . '/original.pdf');
- if(null===$res) {
+ if (null === $res) {
echo 'no pdf in ' . $this->getOut();
}
return $res;
public function process() {
$res = $this->getPath($this->isForce());
if (!file_exists($res)) {
- error_log($res . 'not found :(');
+ error_log($res . ' not found :(');
}else{
- error_log($res . 'ok :)');
+ error_log($res . ' ok :)');
}
return $res;
}
git pull origin master
chmod 755 /docker/fluidbook-processfarm/app/bin/*
chmod 755 /docker/fluidbook-processfarm/app/vendor/cubist/pdf/resources/tools/fwstk.sh
+chmod 755 /docker/fluidbook-processfarm/app/vendor/fluidbook/tools/resources/tools/svgcleaner/svgcleaner
chmod 755 /docker/fluidbook-processfarm/ssh
chmod 600 /docker/fluidbook-processfarm/ssh/id_rsa
DOCKER_BUILDKIT=1 docker compose build