exit;
}
+ public function testSVG() {
+ $test = '/home/extranet/www/fluidbook/docs/115864/html/test.svg';
+ copy('/home/extranet/www/fluidbook/docs/115864/html/tp1.svg', $test);
+ wsDocument::cleanSVG($test,true);
+ }
}
+
+
$pdftocairo->setArg(null, $svgFile);
$pdftocairo->execute();
$this->addToLog($pdftocairo, true, $page);
- $this->_cleanSVG($svgFile, $page);
-
- $svgFile = $this->out . '/html/m' . $page . '.svg';
-
- $mupdf = new CubeIT_CommandLine('mutool');
- $mupdf->setPath(CONVERTER_PATH);
- $mupdf->setArg(null, 'draw');
- $mupdf->setArg('F', 'svg');
-
-
+ copy($svgFile, $this->out . '/html/tp' . $page . '.svg');
$this->_cleanSVG($svgFile, $page);
}
- public static function cleanSVG($svgFile) {
+ public static function cleanSVG($svgFile,$debug=false) {
$svg = new DOMDocument();
$svg->preserveWhiteSpace = false;
- $svg->load($svgFile);
+ $svg->load($svgFile,LIBXML_PARSEHUGE);
// Operations to delete
$xpath = new DOMXPath($svg);