Source for file pdfexportconfig.php
Documentation is available at pdfexportconfig.php
* Configure the TCPDF library for PDF generation
* @author Stuart Prescott
* @copyright Copyright Stuart Prescott
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: pdfexportconfig.php,v 1.2 2006/12/14 22:50:51 themill Exp $
* path (bumblebee root)/inc/export/pdfexportconfig.php
/** Load ancillary functions */
require_once 'inc/typeinfo.php';
require_once 'inc/bb/configreader.php';
/** make TCPDF use our configuration and not its default config */
define ("K_TCPDF_EXTERNAL_CONFIG", true);
/** base path to the TCPDF classes */
define ("K_PATH_MAIN", $conf->value('pdfexport', 'pdflibrary', 'system-inc/tcpdf/'));
// ========================================================================
// Following settings are as per the original TCPDF config file but must be
define ("K_PATH_URL", "http://localhost/_OPENSOURCE/tcpdf/");
define ("FPDF_FONTPATH", K_PATH_MAIN.
"fonts/");
* cache directory for temporary files (full path)
define ("K_PATH_CACHE", K_PATH_MAIN.
"cache/");
* cache directory for temporary files (url path)
define ("K_PATH_URL_CACHE", K_PATH_URL.
"cache/");
define ("K_PATH_IMAGES", K_PATH_MAIN.
"images/");
define ("K_BLANK_IMAGE", K_PATH_IMAGES.
"_blank.png");
define ("PDF_PAGE_FORMAT", "A4");
* page orientation (P=portrait, L=landscape)
define ("PDF_PAGE_ORIENTATION", "P");
define ("PDF_CREATOR", "TCPDF");
define ("PDF_AUTHOR", "pdf author");
define ("PDF_HEADER_TITLE", "header title");
* header description string
define ("PDF_HEADER_STRING", "first row\nsecond row\nthird row");
define ("PDF_HEADER_LOGO", "logo_example.png");
* header logo image width [mm]
define ("PDF_HEADER_LOGO_WIDTH", 20);
* document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
define ("PDF_MARGIN_HEADER", 5);
define ("PDF_MARGIN_FOOTER", 10);
define ("PDF_MARGIN_TOP", 27);
define ("PDF_MARGIN_BOTTOM", 25);
define ("PDF_MARGIN_LEFT", 15);
define ("PDF_MARGIN_RIGHT", 15);
define ("PDF_FONT_NAME_MAIN", "FreeSans"); //vera
define ("PDF_FONT_SIZE_MAIN", 10);
define ("PDF_FONT_NAME_DATA", "FreeSerif"); //verase
define ("PDF_FONT_SIZE_DATA", 8);
* scale factor for images (number of points in user unit)
define ("PDF_IMAGE_SCALE_RATIO", 4);
* magnification factor for titles
define("HEAD_MAGNIFICATION", 1.1);
* height of cell repect 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
// ========================================================================
// Finally, after the config is read in, load the PDF library
/** TCPDF free PDF creation library for PHP: http://sf.net/projects/tcpdf */
require_once 'tcpdf/tcpdf.php';
Documentation generated on Tue, 06 Mar 2007 10:01:53 +0000 by phpDocumentor 1.3.0