Rewrte of FrontReport header API to accept external layouts in pdf and php files.
[fa-stable.git] / reporting / includes / class.pdf.inc
index 778459dc7124c603b6382df824a2ae6d965172a9..71ba2783b209e60453e91b0b9b32a27726b04710 100644 (file)
@@ -59,8 +59,9 @@ define("K_RE_PATTERN_ARABIC", "/(
                        )/x");
 
 include_once (dirname(__FILE__).'/tcpdf.php');
+include_once (dirname(__FILE__).'/fpdi/fpdi.php');
 
-class Cpdf extends TCPDF {
+class Cpdf extends FPDI {
 
        function Cpdf($pageSize='A4', $l=array(), $pageOrientation='P')
        {
@@ -76,8 +77,6 @@ class Cpdf extends TCPDF {
                $this->setPrintFooter(false);
                $this->setPDFVersion("1.3");
                $this->setAutoPageBreak(0);
-               $this->AddPage();
-
                $this->SetLineWidth(1);
                $this->cMargin = 0;
        }