From: Vincent Vanwaelscappel Date: Mon, 5 Jun 2023 12:49:17 +0000 (+0200) Subject: wip #5991 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fcbfdbae86a1e48653adb607c351d9030368842e;p=fluidbook_processfarm.git wip #5991 @0.25 --- diff --git a/app/process.php b/app/process.php index b73dcbe..74b7484 100644 --- a/app/process.php +++ b/app/process.php @@ -12,11 +12,11 @@ if (!isset($_POST['quality'])) { if (!isset($_POST['pdf'])) { if (isset($_POST['toolbox'])) { - $class = ProcessToolboxDocumentFile::class; + $p = new ProcessToolboxDocumentFile($_POST['out'], $_POST['page'], $_POST['resolutionRatio'], $_POST['mobileRatio'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); } else { - $class = ProcessFile::class; + $p = new ProcessFile($_POST['out'], $_POST['page'], $_POST['resolutionRatio'], $_POST['mobileRatio'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); } - $p = new $class($_POST['out'], $_POST['page'], $_POST['resolutionRatio'], $_POST['mobileRatio'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); + } else { $p = new ProcessToolboxPDFFile($_POST['pdf'], $_POST['out'], $_POST['page'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); }