noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 25/27: PDF_Core : add function get


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 25/27: PDF_Core : add function get
Date: Wed, 4 Sep 2019 15:24:58 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit cd34856cfeb60709347eb2658a901440e62f9a4d
Author: Dany De Bontridder <address@hidden>
Date:   Wed Sep 4 21:11:53 2019 +0200

    PDF_Core : add function get
---
 include/lib/pdf_core.class.php | 35 +++++++++++++++++++++++++++++++----
 1 file changed, 31 insertions(+), 4 deletions(-)

diff --git a/include/lib/pdf_core.class.php b/include/lib/pdf_core.class.php
index 91c7672..abfbb92 100644
--- a/include/lib/pdf_core.class.php
+++ b/include/lib/pdf_core.class.php
@@ -58,7 +58,7 @@ class PDF_Core extends TFPDF
 
     public function __construct ( $orientation = 'P', $unit = 'mm', $format = 
'A4')
     {
-               $this->bigger=0;
+       $this->bigger=0;
 
         parent::__construct($orientation, $unit, $format);
         $this->AddFont('DejaVu','','DejaVuSans.ttf',true);
@@ -68,12 +68,39 @@ class PDF_Core extends TFPDF
         $this->AddFont('DejaVuCond','B','DejaVuSansCondensed-Bold.ttf',true);
         
$this->AddFont('DejaVuCond','I','DejaVuSansCondensed-Oblique.ttf',true);
 
-
+        
 
         $this->cells=array();
     }
-
-
+    function get_margin_left()
+    {
+        return $this->lMargin;
+    }
+    function get_margin_bottom()
+    {
+        return $this->bMargin;
+        
+    }
+    function get_margin_top()
+    {
+        return $this->tMargin;
+    }
+    function get_margin_right()
+    {
+        return $this->rMargin;
+    }
+    function get_orientation()
+    {
+        return $this->DefOrientation;
+    }
+    function get_unit()
+    {
+        return $this->k;
+    }
+    function get_page_size()
+    {
+        return $this->DefPageSize;
+    }
     /**
      * Count the number of rows a p_text will take for a multicell
      * @param $p_text String



reply via email to

[Prev in Thread] Current Thread [Next in Thread]