コード例 #1
0
    $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);
$pdf->SetTextColor(0);
// Set margins
$pdf->SetMargins($preferences->pref_etiq_marges_h, $preferences->pref_etiq_marges_v);
// Set font
//$pdf->SetFont("FreeSerif","",PREF_ETIQ_CORPS);
// Set origin