Exemplo n.º 1
0
 $pdf->toc = $toc;
 $pdf->setFontAlias(array('monospace' => 'courier'));
 #$pdf->setLIsymbol(chr(42));
 #$pdf->setLIsymbol('a');
 // set default header data
 // $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);
 $pdf->SetHeaderData($DBInfo->logo_img, 20, $formatter->page->name);
 $pdf->SetTitle($formatter->page->name);
 # $pdf->SetAuthor('Your name');
 $pdf->SetCreator('TCPDF/MoniWiki');
 $pdf->SetSubject($formatter->page->name);
 if (!empty($formatter->pi['#keywords'])) {
     $pdf->SetKeywords($keywords = $formatter->pi['#keywords']);
 }
 // load default font
 $pdf->AddFont($conf['default_unifont']);
 $pdf->SetFont($conf['default_font']);
 // set header and footer fonts
 // $pdf->setHeaderFont(Array($conf['default_unifont'], '', PDF_FONT_SIZE_MAIN));
 $pdf->setHeaderFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
 $pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
 //set margins
 $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
 $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
 $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
 //set auto page breaks
 $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
 //set some language-dependent strings
 $pdf->setLanguageArray($l);
 //set image scale factor
 //$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);