Fix #8052 - fixing pdf
[pear] / XML / SvgToPdfAlt / Image.php
diff --git a/XML/SvgToPdfAlt/Image.php b/XML/SvgToPdfAlt/Image.php
new file mode 100644 (file)
index 0000000..d84f91b
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+/* output a rectangle
+
+*/
+
+class XML_SvgToPDFAlt_Image  extends XML_SvgToPDFAlt_Base {
+    function writePDF($pdf,$data) {
+    
+    
+        $dir = dirname($GLOBALS['_XML_SVGTOPDF']['options']['file']);
+        $pdf->Image($dir .'/'.basename($this->href), $this->x/ 3.543307, $this->y/ 3.543307, $this->width/ 3.543307,$this->height/ 3.543307);
+     
+    
+    }
+
+
+
+}