This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

126
include/tcpdf/2dbarcodes.php Executable file
View File

@@ -0,0 +1,126 @@
<?php
//============================================================+
// File name : 2dbarcodes.php
// Begin : 2009-04-07
// Last Update : 2009-04-08
// Version : 1.0.000
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
// ----------------------------------------------------------------------------
// Copyright (C) 2008-2009 Nicola Asuni - Tecnick.com S.r.l.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 2.1 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// See LICENSE.TXT file for more information.
// ----------------------------------------------------------------------------
//
// Description : PHP class to creates array representations for
// 2D barcodes to be used with TCPDF.
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com S.r.l.
// Via della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* PHP class to creates array representations for 2D barcodes to be used with TCPDF.
* @package com.tecnick.tcpdf
* @abstract Functions for generating string representation of 2D barcodes.
* @author Nicola Asuni
* @copyright 2008-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @version 1.0.000
*/
/**
* PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br>
* @name TCPDFBarcode
* @package com.tecnick.tcpdf
* @version 1.0.000
* @author Nicola Asuni
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
class TCPDF2DBarcode {
/**
* @var array representation of barcode.
* @access protected
*/
protected $barcode_array;
/**
* This is the class constructor.
* Return an array representations for 2D barcodes:<ul>
* <li>$arrcode['code'] code to be printed on text label</li>
* <li>$arrcode['num_rows'] required number of rows</li>
* <li>$arrcode['num_cols'] required number of columns</li>
* <li>$arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)</li></ul>
* @param string $code code to print
* @param string $type type of barcode: <ul><li>TEST</li><li>...TO BE IMPLEMENTED</li></ul>
*/
public function __construct($code, $type) {
$this->setBarcode($code, $type);
}
/**
* Return an array representations of barcode.
* @return array
*/
public function getBarcodeArray() {
return $this->barcode_array;
}
/**
* Set the barcode.
* @param string $code code to print
* @param string $type type of barcode: <ul><li>TEST</li><li>...TO BE IMPLEMENTED</li></ul>
* @return array
*/
public function setBarcode($code, $type) {
$mode = explode(',', $type);
switch (strtoupper($mode[0])) {
case 'TEST': { // TEST MODE
$this->barcode_array['num_rows'] = 5;
$this->barcode_array['num_cols'] = 15;
$this->barcode_array['bcode'] = array(
array(1,1,1,0,1,1,1,0,1,1,1,0,1,1,1),
array(0,1,0,0,1,0,0,0,1,0,0,0,0,1,0),
array(0,1,0,0,1,1,0,0,1,1,1,0,0,1,0),
array(0,1,0,0,1,0,0,0,0,0,1,0,0,1,0),
array(0,1,0,0,1,1,1,0,1,1,1,0,0,1,0)
);
break;
}
// ... Add here real 2D barcodes ...
default: {
$this->barcode_array = false;
}
}
}
} // end of class
//============================================================+
// END OF FILE
//============================================================+
?>

1976
include/tcpdf/barcodes.php Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,50 @@
<?php
//============================================================+
// File name : eng.php
// Begin : 2004-03-03
// Last Update : 2008-11-17
//
// Description : Language module for TCPDF
// (contains translated texts)
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @abstract TCPDF language file.
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.sourceforge.net
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2004-03-03
*/
// ENGLISH
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'en';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'page';
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@@ -0,0 +1,50 @@
<?php
//============================================================+
// File name : ita.php
// Begin : 2004-03-03
// Last Update : 2009-03-18
//
// Description : Language module for TCPDF
// (contains translated texts)
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* TCPDF language file (contains translated texts).
* @package com.tecnick.tcpdf
* @abstract TCPDF language file.
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @link http://tcpdf.sourceforge.net
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2004-03-03
*/
// ENGLISH
global $l;
$l = Array();
// PAGE META DESCRIPTORS --------------------------------------
$l['a_meta_charset'] = 'UTF-8';
$l['a_meta_dir'] = 'ltr';
$l['a_meta_language'] = 'it';
// TRANSLATIONS --------------------------------------
$l['w_page'] = 'pagina';
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@@ -0,0 +1,238 @@
<?php
//============================================================+
// File name : tcpdf_config.php
// Begin : 2004-06-11
// Last Update : 2009-03-18
//
// Description : Configuration file for TCPDF.
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* Configuration file for TCPDF.
* @author Nicola Asuni
* @copyright 2004-2008 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @package com.tecnick.tcpdf
* @version 4.0.014
* @link http://tcpdf.sourceforge.net
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2004-10-27
*/
// If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored.
if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
// DOCUMENT_ROOT fix for IIS Webserver
if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) {
if(isset($_SERVER['SCRIPT_FILENAME'])) {
$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
} elseif(isset($_SERVER['PATH_TRANSLATED'])) {
$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
} else {
// define here your DOCUMENT_ROOT path if the previous fails
$_SERVER['DOCUMENT_ROOT'] = '/var/www';
}
}
// Automatic calculation for the following K_PATH_MAIN constant
$k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config'))));
if (substr($k_path_main, -1) != '/') {
$k_path_main .= '/';
}
/**
* 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', $k_path_main);
// Automatic calculation for the following K_PATH_URL constant
if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') {
$k_path_url = 'https://';
} else {
$k_path_url = 'http://';
}
$k_path_url .= $_SERVER['HTTP_HOST'];
$k_path_url .= str_replace( '\\', '/', substr($_SERVER['PHP_SELF'], 0, -24));
}
/**
* URL path to tcpdf installation folder (http://localhost/tcpdf/).
* By default it is automatically calculated but you can also set it as a fixed string to improve performances.
*/
define ('K_PATH_URL', $k_path_url);
/**
* path for PDF fonts
* use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts
*/
define ('K_PATH_FONTS', 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/');
/**
*images directory
*/
define ('K_PATH_IMAGES', K_PATH_MAIN.'images/');
/**
* blank image
*/
define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
/**
* page format
*/
define ('PDF_PAGE_FORMAT', 'A4');
/**
* 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');
/**
* header description string
*/
define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
/**
* image logo
*/
define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
/**
* header logo image width [mm]
*/
define ('PDF_HEADER_LOGO_WIDTH', 30);
/**
* 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 scale the images
*/
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
*/
define('K_SMALL_RATIO', 2/3);
/**
* 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);
}
//============================================================+
// END OF FILE
//============================================================+
?>

View File

@@ -0,0 +1,233 @@
<?php
//============================================================+
// File name : tcpdf_config.php
// Begin : 2004-06-11
// Last Update : 2009-03-18
//
// Description : Alternative configuration file for TCPDF.
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
// Via Della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* Alternative configuration file for TCPDF.
* @author Nicola Asuni
* @copyright 2004-2008 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @package com.tecnick.tcpdf
* @version 4.0.014
* @link http://tcpdf.sourceforge.net
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2004-10-27
*/
// DOCUMENT_ROOT fix for IIS Webserver
if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR (empty($_SERVER['DOCUMENT_ROOT']))) {
if(isset($_SERVER['SCRIPT_FILENAME'])) {
$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
} elseif(isset($_SERVER['PATH_TRANSLATED'])) {
$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
} else {
// define here your DOCUMENT_ROOT path if the previous fails
$_SERVER['DOCUMENT_ROOT'] = '/var/www';
}
}
// Automatic calculation for the following K_PATH_MAIN constant
$k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config'))));
if (substr($k_path_main, -1) != '/') {
$k_path_main .= '/';
}
/**
* 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', $k_path_main);
// Automatic calculation for the following K_PATH_URL constant
if (isset($_SERVER['HTTP_HOST']) AND (!empty($_SERVER['HTTP_HOST']))) {
if(isset($_SERVER['HTTPS']) AND (!empty($_SERVER['HTTPS'])) AND strtolower($_SERVER['HTTPS'])!='off') {
$k_path_url = 'https://';
} else {
$k_path_url = 'http://';
}
$k_path_url .= $_SERVER['HTTP_HOST'];
$k_path_url .= str_replace( '\\', '/', substr($_SERVER['PHP_SELF'], 0, -24));
}
/**
* URL path to tcpdf installation folder (http://localhost/tcpdf/).
* By default it is automatically calculated but you can also set it as a fixed string to improve performances..
*/
define ('K_PATH_URL', $k_path_url);
/**
* path for PDF fonts
* use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts
*/
define ('K_PATH_FONTS', 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/');
/**
*images directory
*/
define ('K_PATH_IMAGES', K_PATH_MAIN.'images/');
/**
* blank image
*/
define ('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
/**
* page format
*/
define ('PDF_PAGE_FORMAT', 'A4');
/**
* 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');
/**
* header description string
*/
define ('PDF_HEADER_STRING', "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org");
/**
* image logo
*/
define ('PDF_HEADER_LOGO', 'tcpdf_logo.jpg');
/**
* header logo image width [mm]
*/
define ('PDF_HEADER_LOGO_WIDTH', 30);
/**
* 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 scale the images
*/
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
*/
define('K_SMALL_RATIO', 2/3);
/**
* 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);
//============================================================+
// END OF FILE
//============================================================+
?>

23613
include/tcpdf/fonts/uni2cid_ac15.php Executable file

File diff suppressed because it is too large Load Diff

30222
include/tcpdf/fonts/uni2cid_ag15.php Executable file

File diff suppressed because it is too large Load Diff

15705
include/tcpdf/fonts/uni2cid_aj16.php Executable file

File diff suppressed because it is too large Load Diff

17530
include/tcpdf/fonts/uni2cid_ak12.php Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,684 @@
<?php
// BEGIN SUGARCRM SPECIFIC
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
// END SUGARCRM SPECIFIC
//============================================================+
// File name : makefont.php
// Begin : 2004-12-31
// Last Update : 2008-12-06
// Version : 1.2.004
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Nicola Asuni - Tecnick.com S.r.l.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 2.1 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// See LICENSE.TXT file for more information.
// ----------------------------------------------------------------------------
//
// Description : Utility to generate font definition files fot TCPDF
//
// Authors: Nicola Asuni, Olivier Plathey, Steven Wittens
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com S.r.l.
// Via della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* Utility to generate font definition files fot TCPDF.
* @author Nicola Asuni, Olivier Plathey, Steven Wittens
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @package com.tecnick.tcpdf
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
/**
*
* @param string $fontfile path to font file (TTF, OTF or PFB).
* @param string $fmfile font metrics file (UFM or AFM).
* @param boolean $embedded Set to false to not embed the font, true otherwise (default).
* @param string $enc Name of the encoding table to use. Omit this parameter for TrueType Unicode, OpenType Unicode and symbolic fonts like Symbol or ZapfDingBats.
* @param array $patch Optional modification of the encoding
*/
function MakeFont($fontfile, $fmfile, $embedded=true, $enc='cp1252', $patch=array()/* BEGIN SUGARCRM SPECIFIC */, $cidInfo=""/* END SUGARCRM SPECIFIC */) {
//Generate a font definition file
set_magic_quotes_runtime(0);
ini_set('auto_detect_line_endings', '1');
if (!file_exists($fontfile)) {
die('Error: file not found: '.$fontfile);
}
if (!file_exists($fmfile)) {
die('Error: file not found: '.$fmfile);
}
$cidtogidmap = '';
$map = array();
$diff = '';
$dw = 0; // default width
$ffext = strtolower(substr($fontfile, -3));
$fmext = strtolower(substr($fmfile, -3));
if ($fmext == 'afm') {
if (($ffext == 'ttf') OR ($ffext == 'otf')) {
$type = 'TrueType';
} elseif ($ffext == 'pfb') {
$type = 'Type1';
} else {
die('Error: unrecognized font file extension: '.$ffext);
}
if ($enc) {
$map = ReadMap($enc);
foreach ($patch as $cc => $gn) {
$map[$cc] = $gn;
}
}
$fm = ReadAFM($fmfile, $map);
if (isset($widths['.notdef'])) {
$dw = $widths['.notdef'];
}
if ($enc) {
$diff = MakeFontEncoding($map);
}
$fd = MakeFontDescriptor($fm, empty($map));
} elseif ($fmext == 'ufm') {
$enc = '';
if (($ffext == 'ttf') OR ($ffext == 'otf')) {
$type = 'TrueTypeUnicode';
} else {
die('Error: not a TrueType font: '.$ffext);
}
$fm = ReadUFM($fmfile, $cidtogidmap);
$dw = $fm['MissingWidth'];
$fd = MakeFontDescriptor($fm, false);
}
//Start generation
$s = '<?php'."\n";
// BEGIN SUGARCRM SPECIFIC
if($embedded){
// END SUGARCRM SPECIFIC
$s .= '$type=\''.$type."';\n";
// BEGIN SUGARCRM SPECIFIC
}else{
$s .= '$type=\''."cidfont0';\n";
}
// END SUGARCRM SPECIFIC
$s .= '$name=\''.$fm['FontName']."';\n";
$s .= '$desc='.$fd.";\n";
if (!isset($fm['UnderlinePosition'])) {
$fm['UnderlinePosition'] = -100;
}
if (!isset($fm['UnderlineThickness'])) {
$fm['UnderlineThickness'] = 50;
}
$s .= '$up='.$fm['UnderlinePosition'].";\n";
$s .= '$ut='.$fm['UnderlineThickness'].";\n";
if ($dw <= 0) {
if (isset($fm['Widths'][32]) AND ($fm['Widths'][32] > 0)) {
// assign default space width
$dw = $fm['Widths'][32];
} else {
$dw = 600;
}
}
// BEGIN SUGARCRM SPECIFIC
if($embedded){
// END SUGARCRM SPECIFIC
$s .= '$dw='.$dw.";\n";
// BEGIN SUGARCRM SPECIFIC
}else{
$s .= '$dw='."1000;\n";
}
// END SUGARCRM SPECIFIC
$w = MakeWidthArray($fm);
$s .= '$cw='.$w.";\n";
// BEGIN SUGARCRM SPECIFIC
if($embedded){
// END SUGARCRM SPECIFIC
$s .= '$enc=\''.$enc."';\n";
// BEGIN SUGARCRM SPECIFIC
}
// END SUGARCRM SPECIFIC
$s .= '$diff=\''.$diff."';\n";
$basename = substr(basename($fmfile), 0, -4);
// BEGIN SUGARCRM SPECIFIC
$dirname = dirname($fmfile);
// END SUGARCRM SPECIFIC
if ($embedded) {
//Embedded font
if (($type == 'TrueType') OR ($type == 'TrueTypeUnicode')) {
CheckTTF($fontfile);
}
$f = fopen($fontfile,'rb');
if (!$f) {
die('Error: Unable to open '.$fontfile);
}
$file = fread($f, filesize($fontfile));
fclose($f);
if ($type == 'Type1') {
//Find first two sections and discard third one
$header = (ord($file{0}) == 128);
if ($header) {
//Strip first binary header
$file = substr($file, 6);
}
$pos = strpos($file, 'eexec');
if (!$pos) {
die('Error: font file does not seem to be valid Type1');
}
$size1 = $pos + 6;
if ($header AND (ord($file{$size1}) == 128)) {
//Strip second binary header
$file = substr($file, 0, $size1).substr($file, $size1+6);
}
$pos = strpos($file, '00000000');
if (!$pos) {
die('Error: font file does not seem to be valid Type1');
}
$size2 = $pos - $size1;
$file = substr($file, 0, ($size1 + $size2));
}
$basename = strtolower($basename);
if (function_exists('gzcompress')) {
$cmp = $basename.'.z';
// BEGIN SUGARCRM SPECIFIC
/*
// END SUGARCRM SPECIFIC
SaveToFile($cmp, gzcompress($file, 9), 'b');
// BEGIN SUGARCRM SPECIFIC
*/
SaveToFile($dirname."/".$cmp, gzcompress($file, 9), 'b');
// END SUGARCRM SPECIFIC
$s .= '$file=\''.$cmp."';\n";
print "Font file compressed (".$cmp.")\n";
if (!empty($cidtogidmap)) {
$cmp = $basename.'.ctg.z';
// BEGIN SUGARCRM SPECIFIC
/*
// END SUGARCRM SPECIFIC
SaveToFile($cmp, gzcompress($cidtogidmap, 9), 'b');
// BEGIN SUGARCRM SPECIFIC
*/
SaveToFile($dirname."/".$cmp, gzcompress($cidtogidmap, 9), 'b');
// END SUGARCRM SPECIFIC
print "CIDToGIDMap created and compressed (".$cmp.")\n";
$s .= '$ctg=\''.$cmp."';\n";
}
} else {
$s .= '$file=\''.basename($fontfile)."';\n";
print "Notice: font file could not be compressed (zlib extension not available)\n";
if (!empty($cidtogidmap)) {
$cmp = $basename.'.ctg';
// BEGIN SUGARCRM SPECIFIC
/*
// END SUGARCRM SPECIFIC
$f = fopen($cmp, 'wb');
// BEGIN SUGARCRM SPECIFIC
*/
$f = fopen($dirname."/".$cmp, 'wb');
// END SUGARCRM SPECIFIC
fwrite($f, $cidtogidmap);
fclose($f);
print "CIDToGIDMap created (".$cmp.")\n";
$s .= '$ctg=\''.$cmp."';\n";
}
}
if($type == 'Type1') {
$s .= '$size1='.$size1.";\n";
$s .= '$size2='.$size2.";\n";
} else {
$s.='$originalsize='.filesize($fontfile).";\n";
}
} else {
//Not embedded font
// BEGIN SUGARCRM SPECIFIC
/*
// END SUGARCRM SPECIFIC
$s .= '$file='."'';\n";
// BEGIN SUGARCRM SPECIFIC
*/
$s .= $cidInfo;
// END SUGARCRM SPECIFIC
}
$s .= "?>";
// BEGIN SUGARCRM SPECIFIC
/*
// END SUGARCRM SPECIFIC
SaveToFile($basename.'.php',$s);
// BEGIN SUGARCRM SPECIFIC
*/
SaveToFile($dirname."/".$basename.'.php',$s);
// END SUGARCRM SPECIFIC
print "Font definition file generated (".$basename.".php)\n";
// BEGIN SUGARCRM SPECIFIC
return $dirname."/".$basename;
// END SUGARCRM SPECIFIC
}
/**
* Read the specified encoding map.
* @param string $enc map name (see /enc/ folder for valid names).
*/
function ReadMap($enc) {
//Read a map file
$file = dirname(__FILE__).'/enc/'.strtolower($enc).'.map';
$a = file($file);
if (empty($a)) {
die('Error: encoding not found: '.$enc);
}
$cc2gn = array();
foreach ($a as $l) {
if ($l{0} == '!') {
$e = preg_split('/[ \\t]+/',rtrim($l));
$cc = hexdec(substr($e[0],1));
$gn = $e[2];
$cc2gn[$cc] = $gn;
}
}
for($i = 0; $i <= 255; $i++) {
if(!isset($cc2gn[$i])) {
$cc2gn[$i] = '.notdef';
}
}
return $cc2gn;
}
/**
* Read UFM file
*/
function ReadUFM($file, &$cidtogidmap) {
//Prepare empty CIDToGIDMap
$cidtogidmap = str_pad('', (256 * 256 * 2), "\x00");
//Read a font metric file
$a = file($file);
if (empty($a)) {
die('File not found');
}
$widths = array();
$fm = array();
foreach($a as $l) {
$e = explode(' ',chop($l));
if(count($e) < 2) {
continue;
}
$code = $e[0];
$param = $e[1];
if($code == 'U') {
// U 827 ; WX 0 ; N squaresubnosp ; G 675 ;
//Character metrics
$cc = (int)$e[1];
if ($cc != -1) {
$gn = $e[7];
$w = $e[4];
$glyph = $e[10];
$widths[$cc] = $w;
if($cc == ord('X')) {
$fm['CapXHeight'] = $e[13];
}
// Set GID
if (($cc >= 0) AND ($cc < 0xFFFF) AND $glyph) {
$cidtogidmap{($cc * 2)} = chr($glyph >> 8);
$cidtogidmap{(($cc * 2) + 1)} = chr($glyph & 0xFF);
}
}
if(($gn == '.notdef') AND (!isset($fm['MissingWidth']))) {
$fm['MissingWidth'] = $w;
}
} elseif($code == 'FontName') {
$fm['FontName'] = $param;
} elseif($code == 'Weight') {
$fm['Weight'] = $param;
} elseif($code == 'ItalicAngle') {
$fm['ItalicAngle'] = (double)$param;
} elseif($code == 'Ascender') {
$fm['Ascender'] = (int)$param;
} elseif($code == 'Descender') {
$fm['Descender'] = (int)$param;
} elseif($code == 'UnderlineThickness') {
$fm['UnderlineThickness'] = (int)$param;
} elseif($code == 'UnderlinePosition') {
$fm['UnderlinePosition'] = (int)$param;
} elseif($code == 'IsFixedPitch') {
$fm['IsFixedPitch'] = ($param == 'true');
} elseif($code == 'FontBBox') {
$fm['FontBBox'] = array($e[1], $e[2], $e[3], $e[4]);
} elseif($code == 'CapHeight') {
$fm['CapHeight'] = (int)$param;
} elseif($code == 'StdVW') {
$fm['StdVW'] = (int)$param;
}
}
if(!isset($fm['MissingWidth'])) {
$fm['MissingWidth'] = 600;
}
if(!isset($fm['FontName'])) {
die('FontName not found');
}
$fm['Widths'] = $widths;
return $fm;
}
/**
* Read AFM file
*/
function ReadAFM($file,&$map) {
//Read a font metric file
$a = file($file);
if(empty($a)) {
die('File not found');
}
$widths = array();
$fm = array();
$fix = array(
'Edot'=>'Edotaccent',
'edot'=>'edotaccent',
'Idot'=>'Idotaccent',
'Zdot'=>'Zdotaccent',
'zdot'=>'zdotaccent',
'Odblacute' => 'Ohungarumlaut',
'odblacute' => 'ohungarumlaut',
'Udblacute'=>'Uhungarumlaut',
'udblacute'=>'uhungarumlaut',
'Gcedilla'=>'Gcommaaccent'
,'gcedilla'=>'gcommaaccent',
'Kcedilla'=>'Kcommaaccent',
'kcedilla'=>'kcommaaccent',
'Lcedilla'=>'Lcommaaccent',
'lcedilla'=>'lcommaaccent',
'Ncedilla'=>'Ncommaaccent',
'ncedilla'=>'ncommaaccent',
'Rcedilla'=>'Rcommaaccent',
'rcedilla'=>'rcommaaccent',
'Scedilla'=>'Scommaaccent',
'scedilla'=>'scommaaccent',
'Tcedilla'=>'Tcommaaccent',
'tcedilla'=>'tcommaaccent',
'Dslash'=>'Dcroat',
'dslash'=>'dcroat',
'Dmacron'=>'Dcroat',
'dmacron'=>'dcroat',
'combininggraveaccent'=>'gravecomb',
'combininghookabove'=>'hookabovecomb',
'combiningtildeaccent'=>'tildecomb',
'combiningacuteaccent'=>'acutecomb',
'combiningdotbelow'=>'dotbelowcomb',
'dongsign'=>'dong'
);
foreach($a as $l) {
$e = explode(' ', rtrim($l));
if (count($e) < 2) {
continue;
}
$code = $e[0];
$param = $e[1];
if ($code == 'C') {
//Character metrics
$cc = (int)$e[1];
$w = $e[4];
$gn = $e[7];
if (substr($gn, -4) == '20AC') {
$gn = 'Euro';
}
if (isset($fix[$gn])) {
//Fix incorrect glyph name
foreach ($map as $c => $n) {
if ($n == $fix[$gn]) {
$map[$c] = $gn;
}
}
}
if (empty($map)) {
//Symbolic font: use built-in encoding
$widths[$cc] = $w;
} else {
$widths[$gn] = $w;
if($gn == 'X') {
$fm['CapXHeight'] = $e[13];
}
}
if($gn == '.notdef') {
$fm['MissingWidth'] = $w;
}
} elseif($code == 'FontName') {
$fm['FontName'] = $param;
} elseif($code == 'Weight') {
$fm['Weight'] = $param;
} elseif($code == 'ItalicAngle') {
$fm['ItalicAngle'] = (double)$param;
} elseif($code == 'Ascender') {
$fm['Ascender'] = (int)$param;
} elseif($code == 'Descender') {
$fm['Descender'] = (int)$param;
} elseif($code == 'UnderlineThickness') {
$fm['UnderlineThickness'] = (int)$param;
} elseif($code == 'UnderlinePosition') {
$fm['UnderlinePosition'] = (int)$param;
} elseif($code == 'IsFixedPitch') {
$fm['IsFixedPitch'] = ($param == 'true');
} elseif($code == 'FontBBox') {
$fm['FontBBox'] = array($e[1], $e[2], $e[3], $e[4]);
} elseif($code == 'CapHeight') {
$fm['CapHeight'] = (int)$param;
} elseif($code == 'StdVW') {
$fm['StdVW'] = (int)$param;
}
}
if (!isset($fm['FontName'])) {
die('FontName not found');
}
if (!empty($map)) {
if (!isset($widths['.notdef'])) {
$widths['.notdef'] = 600;
}
if (!isset($widths['Delta']) AND isset($widths['increment'])) {
$widths['Delta'] = $widths['increment'];
}
//Order widths according to map
for ($i = 0; $i <= 255; $i++) {
if (!isset($widths[$map[$i]])) {
print "Warning: character ".$map[$i]." is missing\n";
$widths[$i] = $widths['.notdef'];
} else {
$widths[$i] = $widths[$map[$i]];
}
}
}
$fm['Widths'] = $widths;
return $fm;
}
function MakeFontDescriptor($fm, $symbolic=false) {
//Ascent
$asc = (isset($fm['Ascender']) ? $fm['Ascender'] : 1000);
$fd = "array('Ascent'=>".$asc;
//Descent
$desc = (isset($fm['Descender']) ? $fm['Descender'] : -200);
$fd .= ",'Descent'=>".$desc;
//CapHeight
if (isset($fm['CapHeight'])) {
$ch = $fm['CapHeight'];
} elseif (isset($fm['CapXHeight'])) {
$ch = $fm['CapXHeight'];
} else {
$ch = $asc;
}
$fd .= ",'CapHeight'=>".$ch;
//Flags
$flags = 0;
if (isset($fm['IsFixedPitch']) AND $fm['IsFixedPitch']) {
$flags += 1<<0;
}
if ($symbolic) {
$flags += 1<<2;
} else {
$flags += 1<<5;
}
if (isset($fm['ItalicAngle']) AND ($fm['ItalicAngle'] != 0)) {
$flags += 1<<6;
}
$fd .= ",'Flags'=>".$flags;
//FontBBox
if (isset($fm['FontBBox'])) {
$fbb = $fm['FontBBox'];
} else {
$fbb = array(0, ($desc - 100), 1000, ($asc + 100));
}
$fd .= ",'FontBBox'=>'[".$fbb[0].' '.$fbb[1].' '.$fbb[2].' '.$fbb[3]."]'";
//ItalicAngle
$ia = (isset($fm['ItalicAngle']) ? $fm['ItalicAngle'] : 0);
$fd .= ",'ItalicAngle'=>".$ia;
//StemV
if (isset($fm['StdVW'])) {
$stemv = $fm['StdVW'];
} elseif (isset($fm['Weight']) and eregi('(bold|black)', $fm['Weight'])) {
$stemv = 120;
} else {
$stemv = 70;
}
$fd .= ",'StemV'=>".$stemv;
//MissingWidth
if(isset($fm['MissingWidth'])) {
$fd .= ",'MissingWidth'=>".$fm['MissingWidth'];
}
$fd .= ')';
return $fd;
}
function MakeWidthArray($fm) {
//Make character width array
$s = 'array(';
$cw = $fm['Widths'];
$els = array();
$c = 0;
foreach ($cw as $i => $w) {
if (is_numeric($i)) {
$els[] = (((($c++)%10) == 0) ? "\n" : '').$i.'=>'.$w;
}
}
$s .= implode(',', $els);
$s .= ')';
return $s;
}
function MakeFontEncoding($map) {
//Build differences from reference encoding
$ref = ReadMap('cp1252');
$s = '';
$last = 0;
for ($i = 32; $i <= 255; $i++) {
if ($map[$i] != $ref[$i]) {
if ($i != $last+1) {
$s .= $i.' ';
}
$last = $i;
$s .= '/'.$map[$i].' ';
}
}
return rtrim($s);
}
function SaveToFile($file, $s, $mode='t') {
$f = fopen($file, 'w'.$mode);
if(!$f) {
die('Can\'t write to file '.$file);
}
fwrite($f, $s, strlen($s));
fclose($f);
}
function ReadShort($f) {
$a = unpack('n1n', fread($f, 2));
return $a['n'];
}
function ReadLong($f) {
$a = unpack('N1N', fread($f, 4));
return $a['N'];
}
function CheckTTF($file) {
//Check if font license allows embedding
$f = fopen($file, 'rb');
if (!$f) {
die('Error: unable to open '.$file);
}
//Extract number of tables
fseek($f, 4, SEEK_CUR);
$nb = ReadShort($f);
fseek($f, 6, SEEK_CUR);
//Seek OS/2 table
$found = false;
for ($i = 0; $i < $nb; $i++) {
if (fread($f, 4) == 'OS/2') {
$found = true;
break;
}
fseek($f, 12, SEEK_CUR);
}
if (!$found) {
fclose($f);
return;
}
fseek($f, 4, SEEK_CUR);
$offset = ReadLong($f);
fseek($f, $offset, SEEK_SET);
//Extract fsType flags
fseek($f, 8, SEEK_CUR);
$fsType = ReadShort($f);
$rl = ($fsType & 0x02) != 0;
$pp = ($fsType & 0x04) != 0;
$e = ($fsType & 0x08) != 0;
fclose($f);
if($rl AND (!$pp) AND (!$e)) {
print "Warning: font license does not allow embedding\n";
}
}
// BEGIN SUGARCRM SPECIFIC
/*
// END SUGARCRM SPECIFIC
$arg = $GLOBALS['argv'];
if (count($arg) >= 3) {
ob_start();
array_shift($arg);
if (sizeof($arg) == 3) {
$arg[3] = $arg[2];
$arg[2] = true;
} else {
if (!isset($arg[2])) {
$arg[2] = true;
}
if (!isset($arg[3])) {
$arg[3] = 'cp1252';
}
}
if (!isset($arg[4])) {
$arg[4] = array();
}
MakeFont($arg[0], $arg[1], $arg[2], $arg[3], $arg[4]);
$t = ob_get_clean();
print preg_replace('!<BR( /)?>!i', "\n", $t);
} else {
print "Usage: makefont.php <ttf/otf/pfb file> <afm/ufm file> <encoding> <patch>\n";
}
// BEGIN SUGARCRM SPECIFIC
*/
// END SUGARCRM SPECIFIC
?>

208
include/tcpdf/htmlcolors.php Executable file
View File

@@ -0,0 +1,208 @@
<?php
//============================================================+
// File name : htmlcolors.php
// Begin : 2002-04-09
// Last Update : 2008-11-17
// Version : 1.0.002
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
// ----------------------------------------------------------------------------
// Copyright (C) 2002-2009 Nicola Asuni - Tecnick.com S.r.l.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 2.1 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// See LICENSE.TXT file for more information.
// ----------------------------------------------------------------------------
//
// Description : Array of WEB safe colors
//
// Author: Nicola Asuni
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com S.r.l.
// Via della Pace, 11
// 09044 Quartucciu (CA)
// ITALY
// www.tecnick.com
// info@tecnick.com
//============================================================+
/**
* Array of WEB safe colors.
* @author Nicola Asuni
* @copyright 2004-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
* @package com.tecnick.tcpdf
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @since 2.9.000 (2008-03-26)
*/
/**
* Array of WEB safe colors
*/
global $webcolor;
$webcolor = array (
'aliceblue' => 'f0f8ff',
'antiquewhite' => 'faebd7',
'aqua' => '00ffff',
'aquamarine' => '7fffd4',
'azure' => 'f0ffff',
'beige' => 'f5f5dc',
'bisque' => 'ffe4c4',
'black' => '000000',
'blanchedalmond' => 'ffebcd',
'blue' => '0000ff',
'blueviolet' => '8a2be2',
'brown' => 'a52a2a',
'burlywood' => 'deb887',
'cadetblue' => '5f9ea0',
'chartreuse' => '7fff00',
'chocolate' => 'd2691e',
'coral' => 'ff7f50',
'cornflowerblue' => '6495ed',
'cornsilk' => 'fff8dc',
'crimson' => 'dc143c',
'cyan' => '00ffff',
'darkblue' => '00008b',
'darkcyan' => '008b8b',
'darkgoldenrod' => 'b8860b',
'darkgray' => 'a9a9a9',
'darkgrey' => 'a9a9a9',
'darkgreen' => '006400',
'darkkhaki' => 'bdb76b',
'darkmagenta' => '8b008b',
'darkolivegreen' => '556b2f',
'darkorange' => 'ff8c00',
'darkorchid' => '9932cc',
'darkred' => '8b0000',
'darksalmon' => 'e9967a',
'darkseagreen' => '8fbc8f',
'darkslateblue' => '483d8b',
'darkslategray' => '2f4f4f',
'darkslategrey' => '2f4f4f',
'darkturquoise' => '00ced1',
'darkviolet' => '9400d3',
'deeppink' => 'ff1493',
'deepskyblue' => '00bfff',
'dimgray' => '696969',
'dimgrey' => '696969',
'dodgerblue' => '1e90ff',
'firebrick' => 'b22222',
'floralwhite' => 'fffaf0',
'forestgreen' => '228b22',
'fuchsia' => 'ff00ff',
'gainsboro' => 'dcdcdc',
'ghostwhite' => 'f8f8ff',
'gold' => 'ffd700',
'goldenrod' => 'daa520',
'gray' => '808080',
'grey' => '808080',
'green' => '008000',
'greenyellow' => 'adff2f',
'honeydew' => 'f0fff0',
'hotpink' => 'ff69b4',
'indianred ' => 'cd5c5c',
'indigo ' => '4b0082',
'ivory' => 'fffff0',
'khaki' => 'f0e68c',
'lavender' => 'e6e6fa',
'lavenderblush' => 'fff0f5',
'lawngreen' => '7cfc00',
'lemonchiffon' => 'fffacd',
'lightblue' => 'add8e6',
'lightcoral' => 'f08080',
'lightcyan' => 'e0ffff',
'lightgoldenrodyellow' => 'fafad2',
'lightgray' => 'd3d3d3',
'lightgrey' => 'd3d3d3',
'lightgreen' => '90ee90',
'lightpink' => 'ffb6c1',
'lightsalmon' => 'ffa07a',
'lightseagreen' => '20b2aa',
'lightskyblue' => '87cefa',
'lightslategray' => '778899',
'lightslategrey' => '778899',
'lightsteelblue' => 'b0c4de',
'lightyellow' => 'ffffe0',
'lime' => '00ff00',
'limegreen' => '32cd32',
'linen' => 'faf0e6',
'magenta' => 'ff00ff',
'maroon' => '800000',
'mediumaquamarine' => '66cdaa',
'mediumblue' => '0000cd',
'mediumorchid' => 'ba55d3',
'mediumpurple' => '9370d8',
'mediumseagreen' => '3cb371',
'mediumslateblue' => '7b68ee',
'mediumspringgreen' => '00fa9a',
'mediumturquoise' => '48d1cc',
'mediumvioletred' => 'c71585',
'midnightblue' => '191970',
'mintcream' => 'f5fffa',
'mistyrose' => 'ffe4e1',
'moccasin' => 'ffe4b5',
'navajowhite' => 'ffdead',
'navy' => '000080',
'oldlace' => 'fdf5e6',
'olive' => '808000',
'olivedrab' => '6b8e23',
'orange' => 'ffa500',
'orangered' => 'ff4500',
'orchid' => 'da70d6',
'palegoldenrod' => 'eee8aa',
'palegreen' => '98fb98',
'paleturquoise' => 'afeeee',
'palevioletred' => 'd87093',
'papayawhip' => 'ffefd5',
'peachpuff' => 'ffdab9',
'peru' => 'cd853f',
'pink' => 'ffc0cb',
'plum' => 'dda0dd',
'powderblue' => 'b0e0e6',
'purple' => '800080',
'red' => 'ff0000',
'rosybrown' => 'bc8f8f',
'royalblue' => '4169e1',
'saddlebrown' => '8b4513',
'salmon' => 'fa8072',
'sandybrown' => 'f4a460',
'seagreen' => '2e8b57',
'seashell' => 'fff5ee',
'sienna' => 'a0522d',
'silver' => 'c0c0c0',
'skyblue' => '87ceeb',
'slateblue' => '6a5acd',
'slategray' => '708090',
'slategrey' => '708090',
'snow' => 'fffafa',
'springgreen' => '00ff7f',
'steelblue' => '4682b4',
'tan' => 'd2b48c',
'teal' => '008080',
'thistle' => 'd8bfd8',
'tomato' => 'ff6347',
'turquoise' => '40e0d0',
'violet' => 'ee82ee',
'wheat' => 'f5deb3',
'white' => 'ffffff',
'whitesmoke' => 'f5f5f5',
'yellow' => 'ffff00',
'yellowgreen' => '9acd32'
);
//============================================================+
// END OF FILE
//============================================================+
?>

13938
include/tcpdf/tcpdf.php Executable file

File diff suppressed because it is too large Load Diff

18360
include/tcpdf/unicode_data.php Executable file

File diff suppressed because it is too large Load Diff