]> _ Git - cubeextranet.git/commitdiff
wait #4705 @0:20
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 24 Sep 2021 14:26:49 +0000 (14:26 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 24 Sep 2021 14:26:49 +0000 (14:26 +0000)
inc/ws/Util/class.ws.pdf.convert.php

index 2669645afed7c571d1936da401edc32daa49f7db..92baefa35c157ffb030899309db52d94a43a68e2 100644 (file)
@@ -92,6 +92,17 @@ class wsPDFConvert
 \r
     public static function makeBaseSVGFile($in, $out, $page)\r
     {\r
+//        if (stristr($in, '127174')) {\r
+//            // inkscape --pdf-page=1 --export-type=svg --export-filename=i12.svg ./pdf/p12.pdf\r
+//            $inkscape = new CubeIT_CommandLine('inkscape');\r
+//            $inkscape->setArg('pdf-page', '1');\r
+//            $inkscape->setArg('export-type', 'svg');\r
+//            $inkscape->setArg('export-filename', $out);\r
+//            $inkscape->setArg(null, $in);\r
+//            $inkscape->execute();\r
+//            return;\r
+//        }\r
+\r
         $pdftocairo = new CubeIT_CommandLine('pdftocairo');\r
         $pdftocairo->setPath(CONVERTER_PATH);\r
         $pdftocairo->setArg('f', $page);\r
@@ -216,7 +227,7 @@ class wsPDFConvert
         $antialiasing = $antialiasing ? 'yes' : 'no';\r
         $freetype = $texts ? 'yes' : 'no';\r
         // Exporte les fichiers\r
-        $pdftoppm = new CubeIT_CommandLine('/usr/local/bin/pdftoppm', null, true);\r
+        $pdftoppm = new CubeIT_CommandLine('pdftoppm', null, true);\r
         $pdftoppm->setPath(CONVERTER_PATH);\r
 \r
         $pdftoppm->setArg('f', $page);\r