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

Source for file tcpdf_config.php

Documentation is available at tcpdf_config.php

  1. <?php
  2. //============================================================+
  3. // File name   : tcpdf_config.php
  4. // Begin       : 2004-06-11
  5. // Last Update : 2007-03-06
  6. //
  7. // Description : Congiguration file for TCPDF.
  8. //
  9. // Author: Nicola Asuni
  10. //
  11. // (c) Copyright:
  12. //               Tecnick.com S.r.l.
  13. //               Via Ugo Foscolo n.19
  14. //               09045 Quartu Sant'Elena (CA)
  15. //               ITALY
  16. //               www.tecnick.com
  17. //               info@tecnick.com
  18. //============================================================+
  19.  
  20. /**
  21.  * Configuration file for TCPDF.
  22.  * @author Nicola Asuni
  23.  * @copyright Copyright &copy; 2004, Tecnick.com S.r.l. - Via Ugo Foscolo n.19 - 09045 Quartu Sant'Elena (CA) - ITALY - www.tecnick.com - info@tecnick.com
  24.  * @package linea21.externals
  25.  * @subpackage com.tecnick.tcpdf
  26.  * @version 1.53.0.TC025
  27.  * @link http://tcpdf.sourceforge.net
  28.  * @license http://www.gnu.org/copyleft/lesser.html LGPL
  29.  * @since 2004-10-27
  30.  */
  31. // If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored.
  32.  
  33. if (!defined("K_TCPDF_EXTERNAL_CONFIG")) {
  34.     
  35.     // PLEASE SET THE FOLLOWING CONSTANTS:
  36.     /**
  37.      * installation path
  38.      */
  39.     define ("K_PATH_MAIN"SITE_PATH."class/system/tcpdf/");
  40.     
  41.     /**
  42.      * url path
  43.      */
  44.     define ("K_PATH_URL"SITE_ROOT_URL."class/system/tcpdf/");
  45.     
  46.     /**
  47.      * path for PDF fonts
  48.      */
  49.     define ("FPDF_FONTPATH"K_PATH_MAIN."font/");
  50.     
  51.     /**
  52.      * cache directory for temporary files (full path)
  53.      */
  54.     define ("K_PATH_CACHE"K_PATH_MAIN."cache/");
  55.     
  56.     /**
  57.      * cache directory for temporary files (url path)
  58.      */
  59.     define ("K_PATH_URL_CACHE"K_PATH_URL."cache/");
  60.     
  61.     /**
  62.      *images directory
  63.      */
  64.     define ("K_PATH_IMAGES"K_PATH_MAIN."images/");
  65.     
  66.     /**
  67.      * blank image
  68.      */
  69.     define ("K_BLANK_IMAGE"K_PATH_IMAGES."_blank.png");
  70.     
  71.     /**
  72.      * page format
  73.      */
  74.     define ("PDF_PAGE_FORMAT""A4");
  75.     
  76.     /**
  77.      * page orientation (P=portrait, L=landscape)
  78.      */
  79.     define ("PDF_PAGE_ORIENTATION""P");
  80.     
  81.     /**
  82.      * document creator
  83.      */
  84.     define ("PDF_CREATOR""TCPDF");
  85.     
  86.     /**
  87.      * document author
  88.      */
  89.     define ("PDF_AUTHOR""TCPDF");
  90.     
  91.     /**
  92.      * header title
  93.      */
  94.     define ("PDF_HEADER_TITLE""header title");
  95.     
  96.     /**
  97.      * header description string
  98.      */
  99.     define ("PDF_HEADER_STRING""first row\nsecond row\nthird row");
  100.     
  101.     /**
  102.      * image logo
  103.      */
  104.     define ("PDF_HEADER_LOGO""logo_example.png");
  105.     
  106.     /**
  107.      * header logo image width [mm]
  108.      */
  109.     define ("PDF_HEADER_LOGO_WIDTH"20);
  110.     
  111.     /**
  112.      *  document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
  113.      */
  114.     define ("PDF_UNIT""mm");
  115.     
  116.     /**
  117.      * header margin
  118.      */
  119.     define ("PDF_MARGIN_HEADER"5);
  120.     
  121.     /**
  122.      * footer margin
  123.      */
  124.     define ("PDF_MARGIN_FOOTER"10);
  125.     
  126.     /**
  127.      * top margin
  128.      */
  129.     define ("PDF_MARGIN_TOP"27);
  130.     
  131.     /**
  132.      * bottom margin
  133.      */
  134.     define ("PDF_MARGIN_BOTTOM"25);
  135.     
  136.     /**
  137.      * left margin
  138.      */
  139.     define ("PDF_MARGIN_LEFT"15);
  140.     
  141.     /**
  142.      * right margin
  143.      */
  144.     define ("PDF_MARGIN_RIGHT"15);
  145.     
  146.     /**
  147.      * main font name
  148.      */
  149.     define ("PDF_FONT_NAME_MAIN""FreeSerif")//vera
  150.     
  151.     /**
  152.      * main font size
  153.      */
  154.     define ("PDF_FONT_SIZE_MAIN"10);
  155.     
  156.     /**
  157.      * data font name
  158.      */
  159.     define ("PDF_FONT_NAME_DATA""FreeSerif")//verase
  160.     
  161.     /**
  162.      * data font size
  163.      */
  164.     define ("PDF_FONT_SIZE_DATA"8);
  165.     
  166.     /**
  167.      *  scale factor for images (number of points in user unit)
  168.      */
  169.     define ("PDF_IMAGE_SCALE_RATIO"4);
  170.     
  171.     /**
  172.      * magnification factor for titles
  173.      */
  174.     define("HEAD_MAGNIFICATION"1.1);
  175.     
  176.     /**
  177.      * height of cell repect font height
  178.      */
  179.     define("K_CELL_HEIGHT_RATIO"1.25);
  180.     
  181.     /**
  182.      * title magnification respect main font size
  183.      */
  184.     define("K_TITLE_MAGNIFICATION"1.3);
  185.     
  186.     /**
  187.      * reduction factor for small font
  188.      */
  189.     define("K_SMALL_RATIO"2/3);
  190. }
  191.  
  192. //============================================================+
  193. // END OF FILE                                                 
  194. //============================================================+
  195. ?>

Documentation generated on Fri, 16 Oct 2009 09:39:54 +0200 by phpDocumentor 1.4.1