]> _ Git - fluidbook_processfarm.git/commitdiff
wip #5991 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 5 Jun 2023 12:49:17 +0000 (14:49 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 5 Jun 2023 12:49:17 +0000 (14:49 +0200)
app/process.php

index b73dcbe119ffc61607ca009760361bfc547de1bb..74b74849fbc92a6071c20fc5c6e2da551e76ef7f 100644 (file)
@@ -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']);
 }