From: Vincent Vanwaelscappel Date: Mon, 5 Jun 2023 12:31:20 +0000 (+0200) Subject: wip #5991 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=170e798dfbd8c73382cee76176859328c8f287ea;p=fluidbook_processfarm.git wip #5991 @0.25 --- diff --git a/app/process.php b/app/process.php index 8ba2aa0..b73dcbe 100644 --- a/app/process.php +++ b/app/process.php @@ -16,9 +16,9 @@ if (!isset($_POST['pdf'])) { } else { $class = ProcessFile::class; } - $p = new $class($_POST['out'], $_POST['page'], $_POST['resolutionRatio'], $_POST['mobileRatio'], $_POST['format'], $_POST['resolution'], $_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'], $_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); + $p = new ProcessToolboxPDFFile($_POST['pdf'], $_POST['out'], $_POST['page'], $_POST['format'], $_POST['resolution'], (int)$_POST['quality'], $_POST['withGraphics'], $_POST['withText'], $_POST['version'], $_POST['force']); } $res = $p->process(); die($res); \ No newline at end of file