Code

Added missing class
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Aug 2009 13:15:09 +0000 (13:15 +0000)
committercajus <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]

diff --git a/gosa-core/include/exporter/class_PDF.inc b/gosa-core/include/exporter/class_PDF.inc
new file mode 100644 (file)
index 0000000..c6b6977
--- /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');
+  }
+
+}
+
+?>