Ejemplo n.º 1
0
$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
// Top left corner
$yorigin = round($preferences->pref_etiq_marges_v);
$xorigin = round($preferences->pref_etiq_marges_h);
// Label width
$w = round($preferences->pref_etiq_hsize);
// Label heigth
$h = round($preferences->pref_etiq_vsize);