Source for file pdf.doc_define.php
Documentation is available at pdf.doc_define.php
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
* Define, compose and generate a SDI (Sustainable Development Indicators) PDF report
define('DOC_POLICE', 'dejavusanscondensed');
define('DOC_HEIGHT', 4); // hauteur des cellules
define('DOC_INTERVAL', 3); //integer -- marge entre paragraphe
define('PARAGRAPH_BREAK', 8); //integer -- saut de lignes entre parties
define('DOC_TITLE_STYLE', 'B');
define('SDI_TITLE_STYLE', 'B');
define('SDI_ITEM_STYLE', 'B');
define('SDI_INFO_STYLE', 'B');
define('ARRAY_DATA_STYLE', 'I');
///////// Document colors settings ////////////
// Predefined colors are set here
//////////////////////////////////////////////
return array($r, $g, $b);
///////// DOCUMENT INFOS ////////////
$pdf->SetAuthor($report_settings['author']);
$pdf->SetCreator(SITE_LINEA_NAME);
$pdf->SetTitle($report_settings['title'] );
$pdf->SetKeywords($report_settings['title'] );
//////////////////////////////////
$pdf->SetHeaderData('', 0, SITE_NAME, formatText($report_settings['title']) . ' - '. $today);
// set header and footer fonts
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
///////// INITIALISATION DU DOCUMENT ////////////
$pdf->SetDisplayMode('fullwidth', 'single');
$pdf->SetAutoPageBreak(true, 17);
$pdf->SetTextColorArray(getColor('DOC_COLOR'));
$pdf->SetDrawColorArray(getColor('DOC_COLOR_BORDER'));
/////////////////////////////////////////////////
|