removed fixed subtitles

This commit is contained in:
Roland Gruber 2005-11-16 13:23:57 +00:00
parent e7eb52a4cb
commit 9fc8b5a146
4 changed files with 10 additions and 25 deletions

View File

@ -1,4 +1,4 @@
<pdf type="group"> <pdf type="group" headline="Group information">
<section name="_posixGroup_cn"> <section name="_posixGroup_cn">
<entry name="main_dn" /> <entry name="main_dn" />
<entry name="posixGroup_description" /> <entry name="posixGroup_description" />

View File

@ -1,4 +1,4 @@
<pdf type="host"> <pdf type="host" headline="Host information">
<section name="_posixAccount_uid"> <section name="_posixAccount_uid">
<entry name="main_dn" /> <entry name="main_dn" />
<entry name="posixAccount_description" /> <entry name="posixAccount_description" />

View File

@ -1,4 +1,4 @@
<pdf type="user"> <pdf type="user" headline="User information">
<text name="user" /> <text name="user" />
<section name="Personal user information"> <section name="Personal user information">
<entry name="inetOrgPerson_title" /> <entry name="inetOrgPerson_title" />

View File

@ -398,19 +398,6 @@ class lamPDF extends UFPDF {
$this->page_definitions = $page_definitions; $this->page_definitions = $page_definitions;
// Decide which PDF file type we shall use
switch($account_type) {
case "user":
$subject = _("User information page");
break;
case "group":
$subject = _("Group information page");
break;
case "host":
$subject = _("Host information page");
break;
}
// Open PDF file and write some basic information // Open PDF file and write some basic information
$this->Open(); $this->Open();
$this->AddFont($this->fontName, '', $this->fontList[$this->fontName][0]); $this->AddFont($this->fontName, '', $this->fontList[$this->fontName][0]);
@ -419,9 +406,7 @@ class lamPDF extends UFPDF {
$this->AddFont($this->fontName, 'BI', $this->fontList[$this->fontName][3]); $this->AddFont($this->fontName, 'BI', $this->fontList[$this->fontName][3]);
$this->setFont($this->fontName,"",12); $this->setFont($this->fontName,"",12);
$this->setTitle($this->page_definitions['headline']); $this->setTitle($this->page_definitions['headline']);
$this->setSubject($subject); $this->setCreator("LDAP Account Manager");
$this->setAuthor("LDAP Account Manager Devel-Team -Michael Duergner-");
$this->setCreator("LDAP Account Manager (pdf.inc)");
$this->setMargins($this->page_definitions['margin-left'],$this->page_definitions['margin-top'],$this->page_definitions['margin-right']); $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->setAutoPageBreak(true,$this->page_definitions['margin-bottom']);
} }
@ -448,12 +433,11 @@ class lamPDF extends UFPDF {
} }
$this->Image($imageFile,10,10,$width,$height,"JPG"); $this->Image($imageFile,10,10,$width,$height,"JPG");
} }
$this->SetFont($this->fontName,"B",22); $this->SetY(18);
$this->SetFont($this->fontName,"B",18);
$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->SetFont($this->fontName,"",14); $this->SetLineWidth(0.4);
$this->Cell(170,5,"- " . $this->subject . " -",0,0,"R",0);
$this->SetLineWidth(0.8);
$this->Line(10,$this->page_definitions['margin-top'] + 30,200,$this->page_definitions['margin-top'] + 30); $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,$this->page_definitions['margin-top'] + 32,200,$this->page_definitions['margin-top'] + 32);
$this->SetY(50); $this->SetY(50);
@ -463,10 +447,11 @@ class lamPDF extends UFPDF {
* *
*/ */
function footer() { function footer() {
$this->SetLineWidth(0.8); $this->SetLineWidth(0.4);
$this->Line(10,280,200,280); $this->Line(10,280,200,280);
$this->Line(10,282,200,282); $this->Line(10,282,200,282);
$this->SetY(285); $this->SetY(286);
$this->SetFont($this->fontName,"",10);
$this->Cell(0,5,_("This document was automatically created by LDAP Account Manager"),0,0,"C",0); $this->Cell(0,5,_("This document was automatically created by LDAP Account Manager"),0,0,"C",0);
} }
} }