prevent new page directly after the groupname in group PDF

This commit is contained in:
Roland Gruber 2003-11-05 18:11:15 +00:00
parent 03b246e206
commit 61848dc7d7
1 changed files with 2 additions and 1 deletions

View File

@ -417,11 +417,12 @@ function createGroupPDF($accounts) {
$pdfFile->setSubject(_("Group information page"));
$pdfFile->setAuthor("LDAP Account Manager Devel-Team -Roland Gruber-");
$pdfFile->setCreator("LDAP Account Manager (pdf.inc)");
// print host accounts
// print group accounts
$pdfFile->addPage();
for($i = 0; $i < count($accounts); $i++) {
$account = $accounts[$i];
$ypos = $pdfFile->GetY();
if ($ypos > 260) $pdfFile->addPage();
$pdfFile->setFont("times","B",16);
$pdfFile->Write(5,$account->general_username);
$pdfFile->Ln(8);