$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
$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