diff --git a/lam/tests/module_pdf-test.php b/lam/tests/module_pdf-test.php
index a911855f..f2772f1f 100644
--- a/lam/tests/module_pdf-test.php
+++ b/lam/tests/module_pdf-test.php
@@ -20,21 +20,27 @@ $Id$
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
- LDAP Account Manager module PDF test
*/
+/**
+* LDAP Account Manager module PDF test
+*
+* @package tests
+* @author Michael Duergner
+*/
+
+/** PDF functions */
include_once('../lib/pdf.inc');
+/** PDF structures */
+include_once('../lib/pdfstruct.inc');
+
+
+ define('FPDF_FONTPATH', "../lib/font/");
-//print_r(getStructure());
-//print_r(processLine("Test keyTest value"));
-//print_r(processLine("Test p
"));
-
$entries = array("Last name" => array("Test keyTest value"),"First name" => array("Test p
"),"User quotas" => array("User quotasMountpoint | Soft block | Soft inode | Hard block | Hard inode | ","/usr | 10 | 100 | 15 | 150 | "));
- $structure = getStructure(array("User"));
- $structure = $structure['User'];
+ $structure = getPDFStructureDefinitions("user");
- $pdf = new LamPDF("User");
+ $pdf = new LamPDF("user", array('filename' => 'none'), 'BitstreamVeraSans-Roman');
// Loop over each account and add a new page in the PDF file for it
// Start a new page for each account
@@ -86,5 +92,5 @@ include_once('../lib/pdf.inc');
}
}
$pdf->Close();
- $pdf->Output('/home/md/workspace/lam/tests/test.pdf','F');
+ $pdf->Output('/tmp/test.pdf','F');
?>
\ No newline at end of file