]> _ Git - cubeextranet.git/commitdiff
wait #4282 @1.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 19 Feb 2021 16:25:24 +0000 (16:25 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 19 Feb 2021 16:25:24 +0000 (16:25 +0000)
inc/ws/Util/class.ws.pdf.convert.php

index 667174a150ba75ed17f595b88b0af1415cf84c04..3e0545050c2c047aa81b82bb7b1a2bf069dc4737 100644 (file)
@@ -115,17 +115,17 @@ class wsPDFConvert
         $xpath->registerNamespace('svg', 'http://www.w3.org/2000/svg');\r
         $xpath->registerNamespace('xlink', 'http://www.w3.org/1999/xlink');\r
         $xpath->registerNamespace("php", "http://php.net/xpath");\r
-        $xpath->registerPhpFunctions('has_not_text');\r
         $toDelete = array(\r
-            '//svg:defs/svg:clipPath',\r
-            '//svg:defs/svg:image',\r
-            '//svg:defs/svg:path',\r
-            '//svg:defs/svg:pattern',\r
+//            '//svg:defs/svg:clipPath',\r
+//            '//svg:defs/svg:image',\r
+//            '//svg:defs/svg:path',\r
+//            '//svg:defs/svg:pattern',\r
             '//svg:defs/svg:g[starts-with(@id, "surface")]//svg:path',\r
-            '/svg:svg/svg:g//svg:path',\r
-            '/svg:svg/svg:g//svg:rect',\r
-            '//svg:filter',\r
-            '//svg:use[starts-with(@xlink:href, "#image")]'\r
+            '//svg:defs/svg:g[starts-with(@id, "surface")]//svg:rect',\r
+            '/svg:svg/svg:g[@id="surface1"]//svg:path',\r
+            '/svg:svg/svg:g[@id="surface1"]//svg:rect',\r
+            '/svg:svg/svg:g[@id="surface1"]//svg:filter',\r
+            '/svg:svg/svg:g[@id="surface1"]//svg:use[starts-with(@xlink:href, "#image")]'\r
         );\r
 \r
         //global $svglog;\r
@@ -252,9 +252,9 @@ class wsPDFConvert
                 $pnmtopng->execute();\r
             }\r
             unlink($tmp);\r
-        }else{\r
+        } else {\r
             $pdftoppm->debug();\r
-            echo $pdftoppm->command.':'.$pdftoppm->output;\r
+            echo $pdftoppm->command . ':' . $pdftoppm->output;\r
             exit;\r
         }\r
     }\r