Commit 60e4bad7 by sn

Cairo

1 parent 294bc20c
<?php
class mcCairoSvg {
/**
*
* @param string $param_svgFileString
*/
public static function svgToPdf($param_in_svg, $param_out_pdf=false) {
if($param_out_pdf === false) {
$param_out_pdf = tempnam("/tmp", "mcInkscape_");
$tmp_png = $param_out_pdf.'.pdf';
mcFile::rename($param_out_pdf, $tmp_png);
$param_out_pdf = $tmp_png;
}
$inkscape_order = "cairosvg.sh $param_in_svg $param_out_pdf";
$shell_exec = shell_exec($inkscape_order);
D::show($shell_exec, $inkscape_order);
return $param_out_pdf;
}
}
?>
...@@ -49,26 +49,4 @@ class mcInkscape { ...@@ -49,26 +49,4 @@ class mcInkscape {
} }
class mcCairoSvg {
/**
*
* @param string $param_svgFileString
*/
public static function svgToPdf($param_in_svg, $param_out_pdf=false) {
if($param_out_pdf === false) {
$param_out_pdf = tempnam("/tmp", "mcInkscape_");
$tmp_png = $param_out_pdf.'.pdf';
mcFile::rename($param_out_pdf, $tmp_png);
$param_out_pdf = $tmp_png;
}
$inkscape_order = "cairosvg.sh $param_in_svg $param_out_pdf";
$shell_exec = shell_exec($inkscape_order);
D::show($shell_exec, $inkscape_order);
return $param_out_pdf;
}
}
?> ?>
\ No newline at end of file
...@@ -26,6 +26,7 @@ require_once $__PATH_to_mcClasses . 'class_mcMail.inc.php'; ...@@ -26,6 +26,7 @@ require_once $__PATH_to_mcClasses . 'class_mcMail.inc.php';
require_once $__PATH_to_mcClasses . 'class_mcConfig.inc.php'; require_once $__PATH_to_mcClasses . 'class_mcConfig.inc.php';
require_once $__PATH_to_mcClasses . 'file/class_mcFile.inc.php'; require_once $__PATH_to_mcClasses . 'file/class_mcFile.inc.php';
require_once $__PATH_to_mcClasses . 'file/class_mcInkscape.inc.php'; require_once $__PATH_to_mcClasses . 'file/class_mcInkscape.inc.php';
require_once $__PATH_to_mcClasses . 'file/class_mcCairoSvg.inc.php';
require_once $__PATH_to_mcClasses . 'file/class_mcImage.inc.php'; require_once $__PATH_to_mcClasses . 'file/class_mcImage.inc.php';
require_once $__PATH_to_mcClasses . 'class_mcCONST.inc.php'; require_once $__PATH_to_mcClasses . 'class_mcCONST.inc.php';
require_once $__PATH_to_mcClasses . 'class_mcCsv.inc.php'; require_once $__PATH_to_mcClasses . 'class_mcCsv.inc.php';
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!