TCODF配置文件

 TCODF配置文件的注释说明能够更好的了解TCODF的使用方法,更快捷的开发我们所需要的功能节省更多的方法。

<?php 
===========================================================+ 

/** 
* Configuration file for TCPDF. 
* @author Nicola Asuni 
* @package com.tecnick.tcpdf 
* @version 4.9.005 
* @since 2004-10-27 
*/ 

// IMPORTANT: 
// If you define the constant K_TCPDF_EXTERNAL_CONFIG, all the following settings will be ignored. 
// If you use the tcpdf_autoconfig.php, then you can overwrite some values here. 


/** 
* Installation path (/var/www/tcpdf/). 
* By default it is automatically calculated but you can also set it as a fixed string to improve performances. 
*/ 
//define ('K_PATH_MAIN', ''); 

/** 
* URL path to tcpdf installation folder (http://localhost/tcpdf/). 
* By default it is automatically set but you can also set it as a fixed string to improve performances. 
*/ 
//define ('K_PATH_URL', ''); 

/** 
* PDF格式的字体路径。 
*它默认是自动设置,但你也可以将它作为一个固定的字符串来提高性能。 
* Path for PDF fonts. 
* By default it is automatically set but you can also set it as a fixed string to improve performances. 
*/ 
//define ('K_PATH_FONTS', K_PATH_MAIN.'fonts/'); 

/** 
* Default images directory.默认的图片目录。 
* By default it is automatically set but you can also set it as a fixed string to improve performances. 
*/ 
//define ('K_PATH_IMAGES', ''); 

/** 
* Deafult image logo used be the default Header() method. 
*违约图像标志使用的是默认的header()方法。 
* Please set here your own logo or an empty string to disable it. 
*请在这里设置您自己的徽标或禁用它,空字符串。 
*/ 
//define ('PDF_HEADER_LOGO', ''); 

/** 
*在用户单位Header徽标图像宽度。 
* Header logo image width in user units. 
*/ 
//define ('PDF_HEADER_LOGO_WIDTH', 0); 

/** 
*临时文件缓存目录(完整路径)。 
* Cache directory for temporary files (full path). 
*/ 
//define ('K_PATH_CACHE', '/tmp/'); 

/** 
*空白图像通用名称。 
* Generic name for a blank image. 
*/ 
define ('K_BLANK_IMAGE', '_blank.png'); 

/** 
* Page format.页面格式。 
*/ 
define ('PDF_PAGE_FORMAT', 'A4'); 

/** 
*页面方向(P =肖像,L =景观)。 
* Page orientation (P=portrait, L=landscape). 
*/ 
define ('PDF_PAGE_ORIENTATION', 'P'); 

/** 
* Document creator.文件创作者。 
*/ 
define ('PDF_CREATOR', 'TCPDF'); 

/** 
* Document author.文档的作者。 
*/ 
define ('PDF_AUTHOR', 'TCPDF'); 

/** 
* Header title.标题。 
*/ 
define ('PDF_HEADER_TITLE', 'TCPDF Example包括主要TCPDF库(搜索图书馆下面的目录)。'); 


/** 
*标题描述字符串。 
* Header description string. 
*/ 
define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"); 

/** 
*测量[铂=点*文件单元,MM =毫米,厘米,厘米,英寸] =。 
* Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]. 
*/ 
define ('PDF_UNIT', 'mm'); 

/** 
* Header margin.头缘。 
*/ 
define ('PDF_MARGIN_HEADER', 5); 

/** 
* Footer margin.页脚边距。 
*/ 
define ('PDF_MARGIN_FOOTER', 10); 

/** 
* Top margin.顶缘。 
*/ 
define ('PDF_MARGIN_TOP', 27); 

/** 
* Bottom margin.底缘。 
*/ 
define ('PDF_MARGIN_BOTTOM', 25); 

/** 
* Left margin.左缘 
*/ 
define ('PDF_MARGIN_LEFT', 15); 

/** 
* Right margin右缘 
*/ 
define ('PDF_MARGIN_RIGHT', 15); 

/** 
* Default main font name.默认主字体名称。 
*/ 
define ('PDF_FONT_NAME_MAIN', 'helvetica'); 

/** 
* Default main font size.默认主字体大小。 
*/ 
define ('PDF_FONT_SIZE_MAIN', 10); 

/** 
* Default data font name.默认数据字体名称。 
*/ 
define ('PDF_FONT_NAME_DATA', 'helvetica'); 

/** 
* Default data font size.默认数据字体大小。 
*/ 
define ('PDF_FONT_SIZE_DATA', 8); 

/** 
* Default monospaced font name.默认等宽字体名称。 
*/ 
define ('PDF_FONT_MONOSPACED', 'courier'); 

/** 
*比用来调整像素转换为用户单位。 
* Ratio used to adjust the conversion of pixels to user units. 
*/ 
define ('PDF_IMAGE_SCALE_RATIO', 1.25); 

/** 
*为标题放大因子。 
* Magnification factor for titles. 
*/ 
define('HEAD_MAGNIFICATION', 1.1); 

/** 
*细胞方面的字体高度。 
* Height of cell respect font height. 
*/ 
define('K_CELL_HEIGHT_RATIO', 1.25); 

/** 
*称号放大方面主要的字体大小。 
* Title magnification respect main font size. 
*/ 
define('K_TITLE_MAGNIFICATION', 1.3); 

/** 
*小字体的折减系数。 
* Reduction factor for small font. 
*/ 
define('K_SMALL_RATIO', 2/3); 

/** 
*设置为TRUE使用来避免符号在泰语overlappind特别程序。 
* Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language. 
*/ 
define('K_THAI_TOPCHARS', true); 

/** 
*如果真的可以使用HTML语法调用TCPDF方法 
*注意:出于安全原因,如果是打印HTML内容的用户禁用此功能 
* If true allows to call TCPDF methods using HTML syntax 
* IMPORTANT: For security reason, disable this feature if you are printing user HTML content. 
*/ 
define('K_TCPDF_CALLS_IN_HTML', true); 

/** 
*如果真正的PHP版本是伟大的 
* If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution. 
*/ 
define('K_TCPDF_THROW_EXCEPTION_ERROR', false); 

/** 
*为日期时间函数的默认时区 
* Default timezone for datetime functions 
*/ 
define('K_TIMEZONE', 'UTC'); 

//============================================================+ 
// END OF FILE 
//============================================================+ 

 

posted @ 2016-04-15 18:10  楓羽靈~  阅读(410)  评论(0编辑  收藏  举报