From: vincent@cubedesigners.com Date: Fri, 24 Sep 2021 14:26:49 +0000 (+0000) Subject: wait #4705 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6c54abdf78f8f94529821363baa9a87aa43fd8b6;p=cubeextranet.git wait #4705 @0:20 --- diff --git a/inc/ws/Util/class.ws.pdf.convert.php b/inc/ws/Util/class.ws.pdf.convert.php index 2669645af..92baefa35 100644 --- a/inc/ws/Util/class.ws.pdf.convert.php +++ b/inc/ws/Util/class.ws.pdf.convert.php @@ -92,6 +92,17 @@ class wsPDFConvert public static function makeBaseSVGFile($in, $out, $page) { +// if (stristr($in, '127174')) { +// // inkscape --pdf-page=1 --export-type=svg --export-filename=i12.svg ./pdf/p12.pdf +// $inkscape = new CubeIT_CommandLine('inkscape'); +// $inkscape->setArg('pdf-page', '1'); +// $inkscape->setArg('export-type', 'svg'); +// $inkscape->setArg('export-filename', $out); +// $inkscape->setArg(null, $in); +// $inkscape->execute(); +// return; +// } + $pdftocairo = new CubeIT_CommandLine('pdftocairo'); $pdftocairo->setPath(CONVERTER_PATH); $pdftocairo->setArg('f', $page); @@ -216,7 +227,7 @@ class wsPDFConvert $antialiasing = $antialiasing ? 'yes' : 'no'; $freetype = $texts ? 'yes' : 'no'; // Exporte les fichiers - $pdftoppm = new CubeIT_CommandLine('/usr/local/bin/pdftoppm', null, true); + $pdftoppm = new CubeIT_CommandLine('pdftoppm', null, true); $pdftoppm->setPath(CONVERTER_PATH); $pdftoppm->setArg('f', $page);