Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: com-tecnick-tcpdf

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /tcpdf/config/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 : 2005-08-28
  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. //               [email protected]
  18. //============================================================+
  19.  
  20. // no direct access
  21. defined('JPATH_BASE'or die('Restricted access');
  22.  
  23. $lang JFactory :: getLanguage();
  24.  
  25. /**
  26.  * Congiguration file for TCPDF.
  27.  * @author Nicola Asuni
  28.  * @copyright Copyright &copy; 2004, Tecnick.com S.r.l. - Via Ugo Foscolo n.19 - 09045 Quartu Sant'Elena (CA) - ITALY - www.tecnick.com - [email protected]
  29.  * @package com.tecnick.tcpdf
  30.  * @version 1.53.0.TC015
  31.  * @link http://tcpdf.sourceforge.net
  32.  * @license http://www.gnu.org/copyleft/lesser.html LGPL
  33.  * @since 2004-06-11
  34.  */
  35.  
  36. // PLEASE SET THE FOLLOWING CONSTANTS:
  37.  
  38. if (!defined("K_TCPDF_EXTERNAL_CONFIG")) {
  39.  
  40.     /**
  41.      * installation path
  42.      */
  43.     define("K_PATH_MAIN"JPATH_LIBRARIES DS "tcpdf");
  44.  
  45.     /**
  46.      * url path
  47.      */
  48.     define("K_PATH_URL"JPATH_SITE);
  49.  
  50.     /**
  51.      * path for PDF fonts
  52.      */
  53.     define("FPDF_FONTPATH"JPATH_LIBRARIES DS "tcpdf" DS "fonts" DS);
  54.  
  55.     /**
  56.      * cache directory for temporary files (full path)
  57.      */
  58.     define("K_PATH_CACHE"K_PATH_MAIN "cache" DS);
  59.  
  60.     /**
  61.      * cache directory for temporary files (url path)
  62.      */
  63.     define("K_PATH_URL_CACHE"K_PATH_URL "cache" DS);
  64.  
  65.     /**
  66.      *images directory
  67.      */
  68.     define("K_PATH_IMAGES"K_PATH_MAIN "images" DS);
  69.  
  70.     /**
  71.      * blank image
  72.      */
  73.     define("K_BLANK_IMAGE"K_PATH_IMAGES "_blank.png");
  74.  
  75.     /**
  76.      * page format
  77.      */
  78.     define("PDF_PAGE_FORMAT""A4");
  79.  
  80.     /**
  81.      * page orientation (P=portrait, L=landscape)
  82.      */
  83.     define("PDF_PAGE_ORIENTATION""P");
  84.  
  85.     /**
  86.      * document creator
  87.      */
  88.     define("PDF_CREATOR""pdf creator");
  89.  
  90.     /**
  91.      * document author
  92.      */
  93.     define("PDF_AUTHOR""pdf author");
  94.  
  95.     /**
  96.      * header title
  97.      */
  98.     define("PDF_HEADER_TITLE""first row\nsecond row\nthird row");
  99.  
  100.     /**
  101.      * header description string
  102.      */
  103.     define("PDF_HEADER_STRING""first row\nsecond row\nthird row");
  104.  
  105.     /**
  106.      * image logo
  107.      */
  108.     define("PDF_HEADER_LOGO""");
  109.  
  110.     /**
  111.      * header logo image width [mm]
  112.      */
  113.     define("PDF_HEADER_LOGO_WIDTH"20);
  114.  
  115.     /**
  116.      *  document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
  117.      */
  118.     define("PDF_UNIT""mm");
  119.  
  120.     /**
  121.      * header margin
  122.      */
  123.     define("PDF_MARGIN_HEADER"5);
  124.  
  125.     /**
  126.      * footer margin
  127.      */
  128.     define("PDF_MARGIN_FOOTER"10);
  129.  
  130.     /**
  131.      * top margin
  132.      */
  133.     define("PDF_MARGIN_TOP"27);
  134.  
  135.     /**
  136.      * bottom margin
  137.      */
  138.     define("PDF_MARGIN_BOTTOM"25);
  139.  
  140.     /**
  141.      * left margin
  142.      */
  143.     define("PDF_MARGIN_LEFT"15);
  144.  
  145.     /**
  146.      * right margin
  147.      */
  148.     define("PDF_MARGIN_RIGHT"15);
  149.  
  150.     /**
  151.      * main font name
  152.      */
  153.     define("PDF_FONT_NAME_MAIN"$lang->getPdfFontName());
  154.  
  155.     /**
  156.      * main font size
  157.      */
  158.     define("PDF_FONT_SIZE_MAIN"10);
  159.  
  160.     /**
  161.      * data font name
  162.      */
  163.     define("PDF_FONT_NAME_DATA"$lang->getPdfFontName());
  164.  
  165.     /**
  166.      * data font size
  167.      */
  168.     define("PDF_FONT_SIZE_DATA"8);
  169.  
  170.     /**
  171.      *  scale factor for images (number of points in user unit)
  172.      */
  173.     define("PDF_IMAGE_SCALE_RATIO"4);
  174.  
  175.     /**
  176.      * magnification factor for titles
  177.      */
  178.     define("HEAD_MAGNIFICATION"1.1);
  179.  
  180.     /**
  181.      * height of cell repect font height
  182.      */
  183.     define("K_CELL_HEIGHT_RATIO"1.25);
  184.  
  185.     /**
  186.      * title magnification respect main font size
  187.      */
  188.     define("K_TITLE_MAGNIFICATION"1.3);
  189.  
  190.     /**
  191.      * reduction factor for small font
  192.      */
  193.     define("K_SMALL_RATIO"3);
  194. }
  195. ?>

Documentation generated on Mon, 05 Mar 2007 21:28:55 +0000 by phpDocumentor 1.3.1