linea21-utils
[ class tree: linea21-utils ] [ index: linea21-utils ] [ all elements ]

Source for file pdf.doc_define.php

Documentation is available at pdf.doc_define.php

  1. <?php
  2. /**
  3.  * @package linea21.utils
  4.  * @subpackage report_sdi
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  *  Define, compose and generate a SDI (Sustainable Development Indicators) PDF report
  10.  */
  11.  
  12.  
  13. define('INDEX_DEPTH', 1);    // profondeur de l'index
  14.  
  15. define('DOC_POLICE', 'vera');
  16. define('DOC_STYLE', '');
  17. define('DOC_SIZE', 9);
  18. define('DOC_HEIGHT', 4);    // hauteur des cellules
  19. define('DOC_INTERVAL', 3);    //integer -- marge entre paragraphe
  20. define('PARAGRAPH_BREAK', 8);    //integer -- saut de lignes entre parties
  21.  
  22. define('GRAPH_WIDTH', 300);
  23. define('GRAPH_HEIGHT', 200);
  24.  
  25. define('DOC_TITLE_SIZE', 18);
  26. define('DOC_TITLE_STYLE', 'B');
  27.  
  28. define('EM_STYLE', 'I');
  29. define('MIN_SIZE', 8);
  30.  
  31. define('SDI_TITLE_STYLE', 'B');
  32. define('SDI_TITLE_SIZE', 10);
  33.  
  34. define('SDI_ITEM_STYLE', 'B');
  35. define('SDI_ITEM_SIZE', 9);
  36.  
  37. define('SDI_INFO_STYLE', 'B');
  38. define('SDI_INFO_SIZE', 10);
  39.  
  40. define('ARRAY_TITLE_STYLE', 'B');
  41. define('ARRAY_TITLE_SIZE', 8);
  42.  
  43. define('ARRAY_DATA_STYLE', 'I');
  44. define('ARRAY_DATA_SIZE', 8);
  45.  
  46.  
  47. ///////// DOCUMENT INFOS ////////////
  48. $pdf->SetAuthor($report_settings['author']);
  49. $pdf->SetCreator(SITE_LINEA_NAME);
  50. $pdf->SetTitle($report_settings['title'] );
  51. $pdf->SetKeywords($report_settings['title'] );
  52. //////////////////////////////////
  53.  
  54.  
  55. ///////// INITIALISATION DU DOCUMENT ////////////
  56. $pdf->SetDisplayMode('fullwidth', 'single');
  57. $pdf->SetAutoPageBreak(true, 17);
  58. $pdf->AliasNbPages();
  59. $pdf->SetColor('DOC_COLOR');
  60. $pdf->SetColor('DOC_COLOR_BORDER', 'TRACE');
  61. $pdf->SetFont(DOC_POLICE, DOC_STYLE, DOC_SIZE);
  62. /////////////////////////////////////////////////
  63. ?>

Documentation generated on Sat, 08 Nov 2008 14:53:45 +0100 by phpDocumentor 1.4.1