removed margin attributes

This commit is contained in:
Roland Gruber 2008-03-16 10:52:50 +00:00
parent 0c91739559
commit c17b4a13d8
2 changed files with 7 additions and 7 deletions

View File

@ -78,8 +78,8 @@ class lamPDF extends UFPDF {
$this->setFont($this->fontName,"",12); $this->setFont($this->fontName,"",12);
$this->setTitle($this->page_definitions['headline']); $this->setTitle($this->page_definitions['headline']);
$this->setCreator("LDAP Account Manager"); $this->setCreator("LDAP Account Manager");
$this->setMargins($this->page_definitions['margin-left'],$this->page_definitions['margin-top'],$this->page_definitions['margin-right']); $this->setMargins('10.0','10.0','10.0');
$this->setAutoPageBreak(true,$this->page_definitions['margin-bottom']); $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->Cell(170,5,$this->page_definitions['headline'],0,1,"R",0);
$this->Ln(3); $this->Ln(3);
$this->SetLineWidth(0.4); $this->SetLineWidth(0.4);
$this->Line(10,$this->page_definitions['margin-top'] + 30,200,$this->page_definitions['margin-top'] + 30); $this->Line(10,40,200,40);
$this->Line(10,$this->page_definitions['margin-top'] + 32,200,$this->page_definitions['margin-top'] + 32); $this->Line(10,42,200,42);
$this->SetY(50); $this->SetY(50);
} }

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam) 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 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 it under the terms of the GNU General Public License as published by
@ -23,7 +23,7 @@ $Id$
/** /**
* Functions to manage the PDF structures. * Functions to manage the PDF structures.
* *
* @author Michael Dürgner * @author Michael D<EFBFBD>rgner
* @package PDF * @package PDF
*/ */
@ -75,7 +75,7 @@ function loadPDFStructureDefinitions($scope='user',$pdf_structure='default') {
$xml = $parser->parse($file); $xml = $parser->parse($file);
$border = array(); $border = array();
$structure = 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) { if($xml[0][$xml[1]['PDF'][0]]['attributes']['TYPE'] == $scope) {
$border['start'] = $xml[1]['PDF'][0]; $border['start'] = $xml[1]['PDF'][0];
$page_definitions = $xml[0][$xml[1]['PDF'][0]]['attributes']; $page_definitions = $xml[0][$xml[1]['PDF'][0]]['attributes'];