summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2da2cc7)
raw | patch | inline | side by side (parent: 2da2cc7)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 25 Aug 2009 13:15:09 +0000 (13:15 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 25 Aug 2009 13:15:09 +0000 (13:15 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14133 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/exporter/class_PDF.inc | [new file with mode: 0644] | patch | blob |
diff --git a/gosa-core/include/exporter/class_PDF.inc b/gosa-core/include/exporter/class_PDF.inc
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+/* Avoid autoloading this class */ class PDF extends FPDF
+{
+ var $headline= "";
+
+ function setHeadline($headline)
+ {
+ $this->headline= $headline;
+ }
+
+
+ function Header()
+ {
+ $this->SetFont('Helvetica','B',10);
+ $this->Cell(0, 0, $this->headline, 0, 0, 'L');
+ $this->Ln(5);
+ }
+
+ function Footer()
+ {
+ $this->SetY(-15);
+ $this->SetFont('Helvetica','I',8);
+ $this->Cell(0,10, _("Page")." ".$this->PageNo().'/{nb}',0,0,'C');
+ }
+
+}
+
+?>