removed margin attributes
This commit is contained in:
parent
0c91739559
commit
c17b4a13d8
|
@ -78,8 +78,8 @@ class lamPDF extends UFPDF {
|
|||
$this->setFont($this->fontName,"",12);
|
||||
$this->setTitle($this->page_definitions['headline']);
|
||||
$this->setCreator("LDAP Account Manager");
|
||||
$this->setMargins($this->page_definitions['margin-left'],$this->page_definitions['margin-top'],$this->page_definitions['margin-right']);
|
||||
$this->setAutoPageBreak(true,$this->page_definitions['margin-bottom']);
|
||||
$this->setMargins('10.0','10.0','10.0');
|
||||
$this->setAutoPageBreak(true,'20.0');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -109,8 +109,8 @@ class lamPDF extends UFPDF {
|
|||
$this->Cell(170,5,$this->page_definitions['headline'],0,1,"R",0);
|
||||
$this->Ln(3);
|
||||
$this->SetLineWidth(0.4);
|
||||
$this->Line(10,$this->page_definitions['margin-top'] + 30,200,$this->page_definitions['margin-top'] + 30);
|
||||
$this->Line(10,$this->page_definitions['margin-top'] + 32,200,$this->page_definitions['margin-top'] + 32);
|
||||
$this->Line(10,40,200,40);
|
||||
$this->Line(10,42,200,42);
|
||||
$this->SetY(50);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
$Id$
|
||||
|
||||
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
|
||||
Copyright (C) 2003 - 2006 Michael Dürgner
|
||||
Copyright (C) 2003 - 2006 Michael D<EFBFBD>rgner
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -23,7 +23,7 @@ $Id$
|
|||
/**
|
||||
* Functions to manage the PDF structures.
|
||||
*
|
||||
* @author Michael Dürgner
|
||||
* @author Michael D<EFBFBD>rgner
|
||||
* @package PDF
|
||||
*/
|
||||
|
||||
|
@ -75,7 +75,7 @@ function loadPDFStructureDefinitions($scope='user',$pdf_structure='default') {
|
|||
$xml = $parser->parse($file);
|
||||
$border = array();
|
||||
$structure = array();
|
||||
$complete_page_definitions = array('filename' => 'printLogo.jpg', 'headline' => 'LDAP Account Manager', 'margin-top' => '10.0', 'margin-bottom' => '20.0', 'margin-left' => '10.0', 'margin-right' => '10.0');
|
||||
$complete_page_definitions = array('filename' => 'printLogo.jpg', 'headline' => 'LDAP Account Manager');
|
||||
if($xml[0][$xml[1]['PDF'][0]]['attributes']['TYPE'] == $scope) {
|
||||
$border['start'] = $xml[1]['PDF'][0];
|
||||
$page_definitions = $xml[0][$xml[1]['PDF'][0]]['attributes'];
|
||||
|
|
Loading…
Reference in New Issue