Esempio n. 1
0
    if (count($filters->selected) == 0) {
        Analog::log('No member selected to generate labels', Analog::INFO);
        header('location:gestion_adherents.php');
        die;
    }
    $m = new Members();
    $members = $m->getArrayList($filters->selected, array('nom_adh', 'prenom_adh'), false, true, null, false, false, true);
}
if (!is_array($members) || count($members) < 1) {
    die;
}
$doc_title = _T("Member's Labels");
$doc_subject = _T("Generated by Galette");
$doc_keywords = _T("Labels");
// Create new PDF document
$pdf = new Pdf($preferences);
// Set document information
$pdf->SetTitle($doc_title);
$pdf->SetSubject($doc_subject);
$pdf->SetKeywords($doc_keywords);
// No hearders and footers
$pdf->SetPrintHeader(false);
$pdf->SetPrintFooter(false);
$pdf->setFooterMargin(0);
$pdf->setHeaderMargin(0);
// Show full page
$pdf->SetDisplayMode('fullpage');
// Disable Auto Page breaks
$pdf->SetAutoPageBreak(false, 0);
// Set colors
$pdf->SetDrawColor(160, 160, 160);
Esempio n. 2
0
            $hlogo = 25;
        } else {
            $hlogo = $print_logo->getHeight();
        }
        $wlogo = round($hlogo * $ratio);
    } else {
        if ($print_logo->getWidth() > 16) {
            $wlogo = 30;
        } else {
            $wlogo = $print_logo->getWidth();
        }
        $hlogo = round($wlogo / $ratio);
    }
}
// Create new PDF document
$pdf = new Pdf($preferences);
// Set document information
$pdf->SetTitle($doc_title);
$pdf->SetSubject($doc_subject);
$pdf->SetKeywords($doc_keywords);
// No hearders and footers
$pdf->SetPrintHeader(false);
$pdf->SetPrintFooter(false);
$pdf->setFooterMargin(0);
$pdf->setHeaderMargin(0);
// Show full page
$pdf->SetDisplayMode('fullpage');
// Disable Auto Page breaks
$pdf->SetAutoPageBreak(false, 0);
// Set colors
$pdf->SetDrawColor(160, 160, 160);