[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
- [Noalyss-commit] [noalyss] 05/27: Security : avoid direct call to Http Variable, (continued)
- [Noalyss-commit] [noalyss] 05/27: Security : avoid direct call to Http Variable, Dany De Bontridder, 2019/09/04
- [Noalyss-commit] [noalyss] 19/27: #0001735: icone warning, Dany De Bontridder, 2019/09/04
- [Noalyss-commit] [noalyss] 13/27: Missing files for #1369: Étendre la comptabilité analytique à tous les postes?, Dany De Bontridder, 2019/09/04
- [Noalyss-commit] [noalyss] 10/27: #0001711: Gros souci comptanal Montant compté en absolu, Dany De Bontridder, 2019/09/04
- [Noalyss-commit] [noalyss] 15/27: @0001735: icone poubelle catégorie de fiche, Dany De Bontridder, 2019/09/04
- [Noalyss-commit] [noalyss] 17/27: #0001735: icone poubelle catégorie de fiche, Dany De Bontridder, 2019/09/04
- [Noalyss-commit] [noalyss] 22/27: translate, Dany De Bontridder, 2019/09/04
- [Noalyss-commit] [noalyss] 23/27: Data_SQL add the member, Dany De Bontridder, 2019/09/04
- [Noalyss-commit] [noalyss] 16/27: #0001736: PHP7 comptability + translation, Dany De Bontridder, 2019/09/04
- [Noalyss-commit] [noalyss] 14/27: #0001643: ajout icon "cache" pour bouton "remonter", Dany De Bontridder, 2019/09/04
- [Noalyss-commit] [noalyss] 25/27: PDF_Core : add function get,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 24/27: Noalyss_SQL Create a function build query, Dany De Bontridder, 2019/09/04
- [Noalyss-commit] [noalyss] 01/27: Cosmetic, Dany De Bontridder, 2019/09/04