32
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-11-22 21:05:10 +00:00
This commit is contained in:
nicolaasuni 2010-11-12 14:40:05 +01:00
parent 792b779f19
commit d8c3c386f3
24 changed files with 1079 additions and 821 deletions

View File

@ -1,3 +1,11 @@
5.9.012 (2010-11-12)
- Method getTCPDFVersion() was added.
- PDF_PRODUCER constat was removed.
- Method convertHTMLColorToDec() was improved.
- HTML colors now support spot color names defined on the new spotcolors.php file.
- The default method Header() was improved to support SVG and EPS/AI images.
- A bug on SVG importer was fixed.
5.9.011 (2010-11-02) 5.9.011 (2010-11-02)
- Bug item #3101486 "Bug Fix for image loading" was fixed. - Bug item #3101486 "Bug Fix for image loading" was fixed.

View File

@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------ ------------------------------------------------------------
Name: TCPDF Name: TCPDF
Version: 5.9.011 Version: 5.9.012
Release date: 2010-11-02 Release date: 2010-11-12
Author: Nicola Asuni Author: Nicola Asuni
Copyright (c) 2002-2010: Copyright (c) 2002-2010:

View File

@ -65,7 +65,7 @@
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:43 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -1004,7 +1004,7 @@ $code)</code>
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:43 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -5552,7 +5552,7 @@ $frame)</code>
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:43 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

File diff suppressed because it is too large Load Diff

View File

@ -300,7 +300,7 @@ $type)</code>
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:43 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -1378,7 +1378,7 @@ $type)</code>
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:43 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -18704,7 +18704,7 @@ This is a PHP class containing Unicde data for TCPDF library<br /><br /><br /><b
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:49 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:59 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -106,7 +106,7 @@ PHP class to creates array representations for 2D barcodes to be used with TCPDF
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:43 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -106,7 +106,7 @@ PHP class to creates array representations for common 1D barcodes to be used wit
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:43 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -543,7 +543,7 @@ Configuration file for TCPDF.<br /><br /><br /><br />
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:49 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:59 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -70,7 +70,7 @@ Source Location: /htmlcolors.php<br /><br />
<h2>Page Details:</h2> <h2>Page Details:</h2>
Array of WEB safe colors.<br /><br /><br /><br /> Array of WEB safe colors<br /><br /><br /><br />
<h4>Tags:</h4> <h4>Tags:</h4>
<div class="tags"> <div class="tags">
<table border="0" cellspacing="0" cellpadding="0"> <table border="0" cellspacing="0" cellpadding="0">
@ -98,7 +98,7 @@ Array of WEB safe colors.<br /><br /><br /><br />
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:43 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -158,7 +158,7 @@ Class to create PDF417 barcode arrays for TCPDF class.<br /><br /><p>PDF417 (ISO
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:43 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -481,7 +481,7 @@ string $string, [int $split_length = 1])</code>
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:43 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -83,7 +83,7 @@ This is a PHP class for generating PDF documents without requiring external exte
<td><b>author:</b>&nbsp;&nbsp;</td><td>Nicola Asuni</td> <td><b>author:</b>&nbsp;&nbsp;</td><td>Nicola Asuni</td>
</tr> </tr>
<tr> <tr>
<td><b>version:</b>&nbsp;&nbsp;</td><td>5.9.011</td> <td><b>version:</b>&nbsp;&nbsp;</td><td>5.9.012</td>
</tr> </tr>
<tr> <tr>
<td><b>copyright:</b>&nbsp;&nbsp;</td><td>2002-2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com</td> <td><b>copyright:</b>&nbsp;&nbsp;</td><td>2002-2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com</td>
@ -106,24 +106,11 @@ require_once(dirname(__FILE__).'/config/tcpdf_config.php') [line 144]<br />
main configuration file<br /><br /><p>(define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file)</p><br /></div> main configuration file<br /><br /><p>(define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file)</p><br /></div>
<br /><br /> <br /><br />
<br /><br /> <br /><br />
<hr />
<a name="definePDF_PRODUCER"></a>
<h3>PDF_PRODUCER <span class="smalllinenumber">[line 149]</span></h3>
<div class="tags">
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
<code>PDF_PRODUCER = 'TCPDF 5.9.011 (http://www.tcpdf.org)'</code>
</td></tr></table>
</td></tr></table>
define default PDF document producer<br /><br /> <br />
</div>
<div class="top">[ <a href="#top">Top</a> ]</div><br /><br />
<br /> <br />
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:44 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:55 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -103,7 +103,7 @@ Unicode data class for TCPDF library.<br /><br /><br /><br />
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:49 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:59 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -320,7 +320,7 @@
<dt><b>convertHexStringToString</b></dt> <dt><b>convertHexStringToString</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodconvertHexStringToString">TCPDF::convertHexStringToString()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Convert hexadecimal string to string</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodconvertHexStringToString">TCPDF::convertHexStringToString()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Convert hexadecimal string to string</dd>
<dt><b>convertHTMLColorToDec</b></dt> <dt><b>convertHTMLColorToDec</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodconvertHTMLColorToDec">TCPDF::convertHTMLColorToDec()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns an associative array (keys: R,G,B) from an html color name or a six-digit or three-digit hexadecimal color representation (i.e. #3FE5AA or #7FF).</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodconvertHTMLColorToDec">TCPDF::convertHTMLColorToDec()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns an array (RGB or CMYK) from an html color name or a six-digit (i.e. #3FE5AA) or three-digit (i.e. #7FF) hexadecimal color representation.</dd>
<dt><b>convertStringToHexString</b></dt> <dt><b>convertStringToHexString</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodconvertStringToHexString">TCPDF::convertStringToHexString()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Convert string to hexadecimal string (byte string)</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodconvertStringToHexString">TCPDF::convertStringToHexString()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Convert string to hexadecimal string (byte string)</dd>
<dt><b>convertSVGtMatrix</b></dt> <dt><b>convertSVGtMatrix</b></dt>
@ -570,13 +570,13 @@
<dt><b>getBarcode</b></dt> <dt><b>getBarcode</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetBarcode">TCPDF::getBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get current barcode.</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetBarcode">TCPDF::getBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get current barcode.</dd>
<dt><b>getBarcodeArray</b></dt> <dt><b>getBarcodeArray</b></dt>
<dd>in file barcodes.php, method <a href="com-tecnick-tcpdf/TCPDFBarcode.html#methodgetBarcodeArray">TCPDFBarcode::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return an array representations of barcode.</dd>
<dt><b>getBarcodeArray</b></dt>
<dd>in file pdf417.php, method <a href="com-tecnick-tcpdf/PDF417.html#methodgetBarcodeArray">PDF417::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a barcode array which is readable by TCPDF</dd> <dd>in file pdf417.php, method <a href="com-tecnick-tcpdf/PDF417.html#methodgetBarcodeArray">PDF417::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a barcode array which is readable by TCPDF</dd>
<dt><b>getBarcodeArray</b></dt> <dt><b>getBarcodeArray</b></dt>
<dd>in file 2dbarcodes.php, method <a href="com-tecnick-tcpdf/TCPDF2DBarcode.html#methodgetBarcodeArray">TCPDF2DBarcode::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return an array representations of barcode.</dd> <dd>in file 2dbarcodes.php, method <a href="com-tecnick-tcpdf/TCPDF2DBarcode.html#methodgetBarcodeArray">TCPDF2DBarcode::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return an array representations of barcode.</dd>
<dt><b>getBarcodeArray</b></dt> <dt><b>getBarcodeArray</b></dt>
<dd>in file qrcode.php, method <a href="com-tecnick-tcpdf/QRcode.html#methodgetBarcodeArray">QRcode::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a barcode array which is readable by TCPDF</dd> <dd>in file qrcode.php, method <a href="com-tecnick-tcpdf/QRcode.html#methodgetBarcodeArray">QRcode::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a barcode array which is readable by TCPDF</dd>
<dt><b>getBarcodeArray</b></dt>
<dd>in file barcodes.php, method <a href="com-tecnick-tcpdf/TCPDFBarcode.html#methodgetBarcodeArray">TCPDFBarcode::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return an array representations of barcode.</dd>
<dt><b>getBitStream</b></dt> <dt><b>getBitStream</b></dt>
<dd>in file qrcode.php, method <a href="com-tecnick-tcpdf/QRcode.html#methodgetBitStream">QRcode::getBitStream()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a stream of bits.</dd> <dd>in file qrcode.php, method <a href="com-tecnick-tcpdf/QRcode.html#methodgetBitStream">QRcode::getBitStream()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a stream of bits.</dd>
<dt><b>getBorderMode</b></dt> <dt><b>getBorderMode</b></dt>
@ -767,6 +767,8 @@
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetSVGTransformMatrix">TCPDF::getSVGTransformMatrix()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get the tranformation matrix from SVG transform attribute</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetSVGTransformMatrix">TCPDF::getSVGTransformMatrix()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get the tranformation matrix from SVG transform attribute</dd>
<dt><b>getTagStyleFromCSS</b></dt> <dt><b>getTagStyleFromCSS</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetTagStyleFromCSS">TCPDF::getTagStyleFromCSS()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns the styles that apply for the selected HTML tag.</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetTagStyleFromCSS">TCPDF::getTagStyleFromCSS()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns the styles that apply for the selected HTML tag.</dd>
<dt><b>getTCPDFVersion</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetTCPDFVersion">TCPDF::getTCPDFVersion()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return the current TCPDF version.</dd>
<dt><b>getTransformationMatrixProduct</b></dt> <dt><b>getTransformationMatrixProduct</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetTransformationMatrixProduct">TCPDF::getTransformationMatrixProduct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get the product of two SVG tranformation matrices</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetTransformationMatrixProduct">TCPDF::getTransformationMatrixProduct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get the product of two SVG tranformation matrices</dd>
<dt><b>getUserPermissionCode</b></dt> <dt><b>getUserPermissionCode</b></dt>
@ -1241,8 +1243,6 @@
<dd>in file tcpdf_config.php, constant <a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html#definePDF_PAGE_FORMAT">PDF_PAGE_FORMAT</a><br>&nbsp;&nbsp;&nbsp;&nbsp;page format</dd> <dd>in file tcpdf_config.php, constant <a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html#definePDF_PAGE_FORMAT">PDF_PAGE_FORMAT</a><br>&nbsp;&nbsp;&nbsp;&nbsp;page format</dd>
<dt><b>PDF_PAGE_ORIENTATION</b></dt> <dt><b>PDF_PAGE_ORIENTATION</b></dt>
<dd>in file tcpdf_config.php, constant <a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html#definePDF_PAGE_ORIENTATION">PDF_PAGE_ORIENTATION</a><br>&nbsp;&nbsp;&nbsp;&nbsp;page orientation (P=portrait, L=landscape)</dd> <dd>in file tcpdf_config.php, constant <a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html#definePDF_PAGE_ORIENTATION">PDF_PAGE_ORIENTATION</a><br>&nbsp;&nbsp;&nbsp;&nbsp;page orientation (P=portrait, L=landscape)</dd>
<dt><b>PDF_PRODUCER</b></dt>
<dd>in file tcpdf.php, constant <a href="com-tecnick-tcpdf/_tcpdf.php.html#definePDF_PRODUCER">PDF_PRODUCER</a><br>&nbsp;&nbsp;&nbsp;&nbsp;define default PDF document producer</dd>
<dt><b>PDF_UNIT</b></dt> <dt><b>PDF_UNIT</b></dt>
<dd>in file tcpdf_config.php, constant <a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html#definePDF_UNIT">PDF_UNIT</a><br>&nbsp;&nbsp;&nbsp;&nbsp;document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]</dd> <dd>in file tcpdf_config.php, constant <a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html#definePDF_UNIT">PDF_UNIT</a><br>&nbsp;&nbsp;&nbsp;&nbsp;document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]</dd>
<dt><b>PieSector</b></dt> <dt><b>PieSector</b></dt>
@ -1427,6 +1427,8 @@
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$sig_annot_ref">TCPDF::$sig_annot_ref</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Placemark used during signature process.</dd> <dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$sig_annot_ref">TCPDF::$sig_annot_ref</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Placemark used during signature process.</dd>
<dt><b>$sig_obj_id</b></dt> <dt><b>$sig_obj_id</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$sig_obj_id">TCPDF::$sig_obj_id</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Signature object ID</dd> <dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$sig_obj_id">TCPDF::$sig_obj_id</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Signature object ID</dd>
<dt><b>$spotcolor</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$spotcolor">TCPDF::$spotcolor</a></dd>
<dt><b>$spot_colors</b></dt> <dt><b>$spot_colors</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$spot_colors">TCPDF::$spot_colors</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Array of Spot colors</dd> <dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$spot_colors">TCPDF::$spot_colors</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Array of Spot colors</dd>
<dt><b>$start_pattern</b></dt> <dt><b>$start_pattern</b></dt>
@ -1494,11 +1496,11 @@
<dt><b>SetAutoPageBreak</b></dt> <dt><b>SetAutoPageBreak</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetAutoPageBreak">TCPDF::SetAutoPageBreak()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enables or disables the automatic page breaking mode. When enabling, the second parameter is the distance from the bottom of the page that defines the triggering limit. By default, the mode is on and the margin is 2 cm.</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetAutoPageBreak">TCPDF::SetAutoPageBreak()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enables or disables the automatic page breaking mode. When enabling, the second parameter is the distance from the bottom of the page that defines the triggering limit. By default, the mode is on and the margin is 2 cm.</dd>
<dt><b>setBarcode</b></dt> <dt><b>setBarcode</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodsetBarcode">TCPDF::setBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set document barcode.</dd>
<dt><b>setBarcode</b></dt>
<dd>in file 2dbarcodes.php, method <a href="com-tecnick-tcpdf/TCPDF2DBarcode.html#methodsetBarcode">TCPDF2DBarcode::setBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set the barcode.</dd> <dd>in file 2dbarcodes.php, method <a href="com-tecnick-tcpdf/TCPDF2DBarcode.html#methodsetBarcode">TCPDF2DBarcode::setBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set the barcode.</dd>
<dt><b>setBarcode</b></dt> <dt><b>setBarcode</b></dt>
<dd>in file barcodes.php, method <a href="com-tecnick-tcpdf/TCPDFBarcode.html#methodsetBarcode">TCPDFBarcode::setBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set the barcode.</dd> <dd>in file barcodes.php, method <a href="com-tecnick-tcpdf/TCPDFBarcode.html#methodsetBarcode">TCPDFBarcode::setBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set the barcode.</dd>
<dt><b>setBarcode</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodsetBarcode">TCPDF::setBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set document barcode.</dd>
<dt><b>SetBooklet</b></dt> <dt><b>SetBooklet</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetBooklet">TCPDF::SetBooklet()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set the booklet mode for double-sided pages.</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetBooklet">TCPDF::SetBooklet()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set the booklet mode for double-sided pages.</dd>
<dt><b>setBuffer</b></dt> <dt><b>setBuffer</b></dt>
@ -1731,6 +1733,8 @@
<dl> <dl>
<dt><b>$tagvspaces</b></dt> <dt><b>$tagvspaces</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tagvspaces">TCPDF::$tagvspaces</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Array used for custom vertical spaces for HTML tags</dd> <dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tagvspaces">TCPDF::$tagvspaces</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Array used for custom vertical spaces for HTML tags</dd>
<dt><b>$tcpdf_version</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tcpdf_version">TCPDF::$tcpdf_version</a></dd>
<dt><b>$tempfontsize</b></dt> <dt><b>$tempfontsize</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tempfontsize">TCPDF::$tempfontsize</a></dd> <dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tempfontsize">TCPDF::$tempfontsize</a></dd>
<dt><b>$TextColor</b></dt> <dt><b>$TextColor</b></dt>
@ -2134,7 +2138,7 @@
<a href="elementindex.html#top">top</a><br> <a href="elementindex.html#top">top</a><br>
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:42 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -527,7 +527,7 @@
<dt><b>convertHexStringToString</b></dt> <dt><b>convertHexStringToString</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodconvertHexStringToString">TCPDF::convertHexStringToString()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Convert hexadecimal string to string</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodconvertHexStringToString">TCPDF::convertHexStringToString()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Convert hexadecimal string to string</dd>
<dt><b>convertHTMLColorToDec</b></dt> <dt><b>convertHTMLColorToDec</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodconvertHTMLColorToDec">TCPDF::convertHTMLColorToDec()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns an associative array (keys: R,G,B) from an html color name or a six-digit or three-digit hexadecimal color representation (i.e. #3FE5AA or #7FF).</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodconvertHTMLColorToDec">TCPDF::convertHTMLColorToDec()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns an array (RGB or CMYK) from an html color name or a six-digit (i.e. #3FE5AA) or three-digit (i.e. #7FF) hexadecimal color representation.</dd>
<dt><b>convertStringToHexString</b></dt> <dt><b>convertStringToHexString</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodconvertStringToHexString">TCPDF::convertStringToHexString()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Convert string to hexadecimal string (byte string)</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodconvertStringToHexString">TCPDF::convertStringToHexString()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Convert string to hexadecimal string (byte string)</dd>
<dt><b>convertSVGtMatrix</b></dt> <dt><b>convertSVGtMatrix</b></dt>
@ -777,13 +777,13 @@
<dt><b>getBarcode</b></dt> <dt><b>getBarcode</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetBarcode">TCPDF::getBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get current barcode.</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetBarcode">TCPDF::getBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get current barcode.</dd>
<dt><b>getBarcodeArray</b></dt> <dt><b>getBarcodeArray</b></dt>
<dd>in file barcodes.php, method <a href="com-tecnick-tcpdf/TCPDFBarcode.html#methodgetBarcodeArray">TCPDFBarcode::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return an array representations of barcode.</dd>
<dt><b>getBarcodeArray</b></dt>
<dd>in file pdf417.php, method <a href="com-tecnick-tcpdf/PDF417.html#methodgetBarcodeArray">PDF417::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a barcode array which is readable by TCPDF</dd> <dd>in file pdf417.php, method <a href="com-tecnick-tcpdf/PDF417.html#methodgetBarcodeArray">PDF417::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a barcode array which is readable by TCPDF</dd>
<dt><b>getBarcodeArray</b></dt> <dt><b>getBarcodeArray</b></dt>
<dd>in file 2dbarcodes.php, method <a href="com-tecnick-tcpdf/TCPDF2DBarcode.html#methodgetBarcodeArray">TCPDF2DBarcode::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return an array representations of barcode.</dd> <dd>in file 2dbarcodes.php, method <a href="com-tecnick-tcpdf/TCPDF2DBarcode.html#methodgetBarcodeArray">TCPDF2DBarcode::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return an array representations of barcode.</dd>
<dt><b>getBarcodeArray</b></dt> <dt><b>getBarcodeArray</b></dt>
<dd>in file qrcode.php, method <a href="com-tecnick-tcpdf/QRcode.html#methodgetBarcodeArray">QRcode::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a barcode array which is readable by TCPDF</dd> <dd>in file qrcode.php, method <a href="com-tecnick-tcpdf/QRcode.html#methodgetBarcodeArray">QRcode::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a barcode array which is readable by TCPDF</dd>
<dt><b>getBarcodeArray</b></dt>
<dd>in file barcodes.php, method <a href="com-tecnick-tcpdf/TCPDFBarcode.html#methodgetBarcodeArray">TCPDFBarcode::getBarcodeArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return an array representations of barcode.</dd>
<dt><b>getBitStream</b></dt> <dt><b>getBitStream</b></dt>
<dd>in file qrcode.php, method <a href="com-tecnick-tcpdf/QRcode.html#methodgetBitStream">QRcode::getBitStream()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a stream of bits.</dd> <dd>in file qrcode.php, method <a href="com-tecnick-tcpdf/QRcode.html#methodgetBitStream">QRcode::getBitStream()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns a stream of bits.</dd>
<dt><b>getBorderMode</b></dt> <dt><b>getBorderMode</b></dt>
@ -974,6 +974,8 @@
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetSVGTransformMatrix">TCPDF::getSVGTransformMatrix()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get the tranformation matrix from SVG transform attribute</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetSVGTransformMatrix">TCPDF::getSVGTransformMatrix()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get the tranformation matrix from SVG transform attribute</dd>
<dt><b>getTagStyleFromCSS</b></dt> <dt><b>getTagStyleFromCSS</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetTagStyleFromCSS">TCPDF::getTagStyleFromCSS()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns the styles that apply for the selected HTML tag.</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetTagStyleFromCSS">TCPDF::getTagStyleFromCSS()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns the styles that apply for the selected HTML tag.</dd>
<dt><b>getTCPDFVersion</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetTCPDFVersion">TCPDF::getTCPDFVersion()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Return the current TCPDF version.</dd>
<dt><b>getTransformationMatrixProduct</b></dt> <dt><b>getTransformationMatrixProduct</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetTransformationMatrixProduct">TCPDF::getTransformationMatrixProduct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get the product of two SVG tranformation matrices</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetTransformationMatrixProduct">TCPDF::getTransformationMatrixProduct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get the product of two SVG tranformation matrices</dd>
<dt><b>getUserPermissionCode</b></dt> <dt><b>getUserPermissionCode</b></dt>
@ -1448,8 +1450,6 @@
<dd>in file tcpdf_config.php, constant <a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html#definePDF_PAGE_FORMAT">PDF_PAGE_FORMAT</a><br>&nbsp;&nbsp;&nbsp;&nbsp;page format</dd> <dd>in file tcpdf_config.php, constant <a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html#definePDF_PAGE_FORMAT">PDF_PAGE_FORMAT</a><br>&nbsp;&nbsp;&nbsp;&nbsp;page format</dd>
<dt><b>PDF_PAGE_ORIENTATION</b></dt> <dt><b>PDF_PAGE_ORIENTATION</b></dt>
<dd>in file tcpdf_config.php, constant <a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html#definePDF_PAGE_ORIENTATION">PDF_PAGE_ORIENTATION</a><br>&nbsp;&nbsp;&nbsp;&nbsp;page orientation (P=portrait, L=landscape)</dd> <dd>in file tcpdf_config.php, constant <a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html#definePDF_PAGE_ORIENTATION">PDF_PAGE_ORIENTATION</a><br>&nbsp;&nbsp;&nbsp;&nbsp;page orientation (P=portrait, L=landscape)</dd>
<dt><b>PDF_PRODUCER</b></dt>
<dd>in file tcpdf.php, constant <a href="com-tecnick-tcpdf/_tcpdf.php.html#definePDF_PRODUCER">PDF_PRODUCER</a><br>&nbsp;&nbsp;&nbsp;&nbsp;define default PDF document producer</dd>
<dt><b>PDF_UNIT</b></dt> <dt><b>PDF_UNIT</b></dt>
<dd>in file tcpdf_config.php, constant <a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html#definePDF_UNIT">PDF_UNIT</a><br>&nbsp;&nbsp;&nbsp;&nbsp;document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]</dd> <dd>in file tcpdf_config.php, constant <a href="com-tecnick-tcpdf/_config---tcpdf_config.php.html#definePDF_UNIT">PDF_UNIT</a><br>&nbsp;&nbsp;&nbsp;&nbsp;document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]</dd>
<dt><b>PieSector</b></dt> <dt><b>PieSector</b></dt>
@ -1634,6 +1634,8 @@
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$sig_annot_ref">TCPDF::$sig_annot_ref</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Placemark used during signature process.</dd> <dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$sig_annot_ref">TCPDF::$sig_annot_ref</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Placemark used during signature process.</dd>
<dt><b>$sig_obj_id</b></dt> <dt><b>$sig_obj_id</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$sig_obj_id">TCPDF::$sig_obj_id</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Signature object ID</dd> <dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$sig_obj_id">TCPDF::$sig_obj_id</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Signature object ID</dd>
<dt><b>$spotcolor</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$spotcolor">TCPDF::$spotcolor</a></dd>
<dt><b>$spot_colors</b></dt> <dt><b>$spot_colors</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$spot_colors">TCPDF::$spot_colors</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Array of Spot colors</dd> <dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$spot_colors">TCPDF::$spot_colors</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Array of Spot colors</dd>
<dt><b>$start_pattern</b></dt> <dt><b>$start_pattern</b></dt>
@ -1701,11 +1703,11 @@
<dt><b>SetAutoPageBreak</b></dt> <dt><b>SetAutoPageBreak</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetAutoPageBreak">TCPDF::SetAutoPageBreak()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enables or disables the automatic page breaking mode. When enabling, the second parameter is the distance from the bottom of the page that defines the triggering limit. By default, the mode is on and the margin is 2 cm.</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetAutoPageBreak">TCPDF::SetAutoPageBreak()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Enables or disables the automatic page breaking mode. When enabling, the second parameter is the distance from the bottom of the page that defines the triggering limit. By default, the mode is on and the margin is 2 cm.</dd>
<dt><b>setBarcode</b></dt> <dt><b>setBarcode</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodsetBarcode">TCPDF::setBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set document barcode.</dd>
<dt><b>setBarcode</b></dt>
<dd>in file 2dbarcodes.php, method <a href="com-tecnick-tcpdf/TCPDF2DBarcode.html#methodsetBarcode">TCPDF2DBarcode::setBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set the barcode.</dd> <dd>in file 2dbarcodes.php, method <a href="com-tecnick-tcpdf/TCPDF2DBarcode.html#methodsetBarcode">TCPDF2DBarcode::setBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set the barcode.</dd>
<dt><b>setBarcode</b></dt> <dt><b>setBarcode</b></dt>
<dd>in file barcodes.php, method <a href="com-tecnick-tcpdf/TCPDFBarcode.html#methodsetBarcode">TCPDFBarcode::setBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set the barcode.</dd> <dd>in file barcodes.php, method <a href="com-tecnick-tcpdf/TCPDFBarcode.html#methodsetBarcode">TCPDFBarcode::setBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set the barcode.</dd>
<dt><b>setBarcode</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodsetBarcode">TCPDF::setBarcode()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set document barcode.</dd>
<dt><b>SetBooklet</b></dt> <dt><b>SetBooklet</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetBooklet">TCPDF::SetBooklet()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set the booklet mode for double-sided pages.</dd> <dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetBooklet">TCPDF::SetBooklet()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Set the booklet mode for double-sided pages.</dd>
<dt><b>setBuffer</b></dt> <dt><b>setBuffer</b></dt>
@ -1938,6 +1940,8 @@
<dl> <dl>
<dt><b>$tagvspaces</b></dt> <dt><b>$tagvspaces</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tagvspaces">TCPDF::$tagvspaces</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Array used for custom vertical spaces for HTML tags</dd> <dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tagvspaces">TCPDF::$tagvspaces</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Array used for custom vertical spaces for HTML tags</dd>
<dt><b>$tcpdf_version</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tcpdf_version">TCPDF::$tcpdf_version</a></dd>
<dt><b>$tempfontsize</b></dt> <dt><b>$tempfontsize</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tempfontsize">TCPDF::$tempfontsize</a></dd> <dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tempfontsize">TCPDF::$tempfontsize</a></dd>
<dt><b>$TextColor</b></dt> <dt><b>$TextColor</b></dt>
@ -2167,7 +2171,7 @@
<a href="elementindex_com-tecnick-tcpdf.html#top">top</a><br> <a href="elementindex_com-tecnick-tcpdf.html#top">top</a><br>
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:42 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:52 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -35,7 +35,7 @@
<a href="#Post-parsing">Post-parsing</a><br> <a href="#Post-parsing">Post-parsing</a><br>
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:49 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:59 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -68,7 +68,7 @@
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br /> This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br />
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:43 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -68,7 +68,7 @@
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br /> This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br />
<div class="credit"> <div class="credit">
<hr /> <hr />
Documentation generated on Tue, 02 Nov 2010 12:30:43 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a> Documentation generated on Fri, 12 Nov 2010 14:39:53 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div> </div>
</td></tr></table> </td></tr></table>
</td> </td>

View File

@ -1,9 +1,9 @@
<?php <?php
//============================================================+ //============================================================+
// File name : htmlcolors.php // File name : htmlcolors.php
// Version : 1.0.007 // Version : 1.0.008
// Begin : 2002-04-09 // Begin : 2002-04-09
// Last Update : 2010-10-18 // Last Update : 2010-11-11
// Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html) // License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// ------------------------------------------------------------------- // -------------------------------------------------------------------
@ -32,7 +32,7 @@
//============================================================+ //============================================================+
/** /**
* Array of WEB safe colors. * Array of WEB safe colors
* @author Nicola Asuni * @author Nicola Asuni
* @copyright 2002-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 * @copyright 2002-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 * @package com.tecnick.tcpdf

280
tcpdf.php
View File

@ -1,9 +1,9 @@
<?php <?php
//============================================================+ //============================================================+
// File name : tcpdf.php // File name : tcpdf.php
// Version : 5.9.011 // Version : 5.9.012
// Begin : 2002-08-03 // Begin : 2002-08-03
// Last Update : 2010-11-02 // Last Update : 2010-11-12
// Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html) // License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// ------------------------------------------------------------------- // -------------------------------------------------------------------
@ -134,7 +134,7 @@
* @copyright 2002-2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com * @copyright 2002-2010 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 * @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL * @license http://www.gnu.org/copyleft/lesser.html LGPL
* @version 5.9.011 * @version 5.9.012
*/ */
/** /**
@ -143,23 +143,26 @@
*/ */
require_once(dirname(__FILE__).'/config/tcpdf_config.php'); require_once(dirname(__FILE__).'/config/tcpdf_config.php');
/**
* define default PDF document producer
*/
define('PDF_PRODUCER', 'TCPDF 5.9.011 (http://www.tcpdf.org)');
/** /**
* This is a PHP class for generating PDF documents without requiring external extensions.<br> * This is a PHP class for generating PDF documents without requiring external extensions.<br>
* TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br> * TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br>
* @name TCPDF * @name TCPDF
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @version 5.9.011 * @version 5.9.012
* @author Nicola Asuni - info@tecnick.com * @author Nicola Asuni - info@tecnick.com
* @link http://www.tcpdf.org * @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL * @license http://www.gnu.org/copyleft/lesser.html LGPL
*/ */
class TCPDF { class TCPDF {
// private properties
/**
* @var current TCPDF version
* @access private
*/
private $tcpdf_version = '5.9.012';
// Protected properties // Protected properties
/** /**
@ -1572,6 +1575,13 @@ class TCPDF {
*/ */
protected $webcolor = array(); protected $webcolor = array();
/**
* @var array containing spot color names and values
* @access protected
* @since 5.9.012 (2010-11-11)
*/
protected $spotcolor = array();
/** /**
* @var directory used for the last SVG image * @var directory used for the last SVG image
* @access protected * @access protected
@ -1756,8 +1766,16 @@ class TCPDF {
$this->internal_encoding = mb_internal_encoding(); $this->internal_encoding = mb_internal_encoding();
mb_internal_encoding('ASCII'); mb_internal_encoding('ASCII');
} }
// get array of HTML colors
require(dirname(__FILE__).'/htmlcolors.php'); require(dirname(__FILE__).'/htmlcolors.php');
$this->webcolor = $webcolor; $this->webcolor = $webcolor;
// get array of custom spot colors
if (file_exists(dirname(__FILE__).'/spotcolors.php')) {
require(dirname(__FILE__).'/spotcolors.php');
$this->spotcolor = $spotcolor;
} else {
$this->spotcolor = array();
}
require_once(dirname(__FILE__).'/unicode_data.php'); require_once(dirname(__FILE__).'/unicode_data.php');
$this->unicode = new TCPDF_UNICODE_DATA(); $this->unicode = new TCPDF_UNICODE_DATA();
$this->font_obj_ids = array(); $this->font_obj_ids = array();
@ -1899,6 +1917,16 @@ class TCPDF {
$this->_destroy(true); $this->_destroy(true);
} }
/**
* Return the current TCPDF version.
* @return TCPDF version string
* @access public
* @since 5.9.012 (2010-11-10)
*/
public function getTCPDFVersion() {
return $this->tcpdf_version;
}
/** /**
* Set the units of measure for the document. * Set the units of measure for the document.
* @param string $unit User measure unit. Possible values are:<ul><li>pt: point</li><li>mm: millimeter (default)</li><li>cm: centimeter</li><li>in: inch</li></ul><br />A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit. * @param string $unit User measure unit. Possible values are:<ul><li>pt: point</li><li>mm: millimeter (default)</li><li>cm: centimeter</li><li>in: inch</li></ul><br />A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit.
@ -3602,13 +3630,12 @@ class TCPDF {
$this->y = $this->h - (1 / $this->k); $this->y = $this->h - (1 / $this->k);
$this->lMargin = 0; $this->lMargin = 0;
$this->_out('q'); $this->_out('q');
$this->setVisibility('screen');
$this->SetFont('helvetica', '', 1); $this->SetFont('helvetica', '', 1);
$this->SetTextColor(255, 255, 255); $this->AddSpotColor('trnsprnt', 0, 0, 0, 50);
$this->SetTextSpotColor('trnsprnt', 0);
$msg = "\x50\x6f\x77\x65\x72\x65\x64\x20\x62\x79\x20\x54\x43\x50\x44\x46\x20\x28\x77\x77\x77\x2e\x74\x63\x70\x64\x66\x2e\x6f\x72\x67\x29"; $msg = "\x50\x6f\x77\x65\x72\x65\x64\x20\x62\x79\x20\x54\x43\x50\x44\x46\x20\x28\x77\x77\x77\x2e\x74\x63\x70\x64\x66\x2e\x6f\x72\x67\x29";
$lnk = "\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x74\x63\x70\x64\x66\x2e\x6f\x72\x67"; $lnk = "\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x74\x63\x70\x64\x66\x2e\x6f\x72\x67";
$this->Cell(0, 0, $msg, 0, 0, 'L', 0, $lnk, 0, false, 'D', 'B'); $this->Cell(0, 0, $msg, 0, 0, 'L', 0, $lnk, 0, false, 'D', 'B');
$this->setVisibility('all');
$this->_out('Q'); $this->_out('Q');
// restore graphic settings // restore graphic settings
$this->setGraphicVars($gvars); $this->setGraphicVars($gvars);
@ -3971,7 +3998,14 @@ class TCPDF {
$headerfont = $this->getHeaderFont(); $headerfont = $this->getHeaderFont();
$headerdata = $this->getHeaderData(); $headerdata = $this->getHeaderData();
if (($headerdata['logo']) AND ($headerdata['logo'] != K_BLANK_IMAGE)) { if (($headerdata['logo']) AND ($headerdata['logo'] != K_BLANK_IMAGE)) {
$this->Image(K_PATH_IMAGES.$headerdata['logo'], '', '', $headerdata['logo_width']); $imgtype = $this->getImageFileType(K_PATH_IMAGES.$headerdata['logo']);
if (($imgtype == 'eps') OR ($imgtype == 'ai')) {
$this->ImageEps(K_PATH_IMAGES.$headerdata['logo'], '', '', $headerdata['logo_width']);
} elseif ($imgtype == 'svg') {
$this->ImageSVG(K_PATH_IMAGES.$headerdata['logo'], '', '', $headerdata['logo_width']);
} else {
$this->Image(K_PATH_IMAGES.$headerdata['logo'], '', '', $headerdata['logo_width']);
}
$imgy = $this->getImageRBY(); $imgy = $this->getImageRBY();
} else { } else {
$imgy = $this->GetY(); $imgy = $this->GetY();
@ -4197,10 +4231,10 @@ class TCPDF {
* Defines a new spot color. * Defines a new spot color.
* It can be expressed in RGB components or gray scale. * It can be expressed in RGB components or gray scale.
* The method can be called before the first page is created and the value is retained from page to page. * The method can be called before the first page is created and the value is retained from page to page.
* @param int $c Cyan color for CMYK. Value between 0 and 255 * @param int $c Cyan color for CMYK. Value between 0 and 100
* @param int $m Magenta color for CMYK. Value between 0 and 255 * @param int $m Magenta color for CMYK. Value between 0 and 100
* @param int $y Yellow color for CMYK. Value between 0 and 255 * @param int $y Yellow color for CMYK. Value between 0 and 100
* @param int $k Key (Black) color for CMYK. Value between 0 and 255 * @param int $k Key (Black) color for CMYK. Value between 0 and 100
* @access public * @access public
* @since 4.0.024 (2008-09-12) * @since 4.0.024 (2008-09-12)
* @see SetDrawSpotColor(), SetFillSpotColor(), SetTextSpotColor() * @see SetDrawSpotColor(), SetFillSpotColor(), SetTextSpotColor()
@ -4214,10 +4248,10 @@ class TCPDF {
/** /**
* Defines the color used for all drawing operations (lines, rectangles and cell borders). * Defines the color used for all drawing operations (lines, rectangles and cell borders).
* It can be expressed in RGB components or gray scale. * It can be expressed in RGB, CMYK or GRAY SCALE components.
* The method can be called before the first page is created and the value is retained from page to page. * The method can be called before the first page is created and the value is retained from page to page.
* @param array $color array of colors * @param array $color array of colors
* @param boolean $ret if true do not send the command. * @param boolean $ret if true do not send the PDF command.
* @return string the PDF command * @return string the PDF command
* @access public * @access public
* @since 3.1.000 (2008-06-11) * @since 3.1.000 (2008-06-11)
@ -4230,8 +4264,9 @@ class TCPDF {
$g = isset($color[1]) ? $color[1] : -1; $g = isset($color[1]) ? $color[1] : -1;
$b = isset($color[2]) ? $color[2] : -1; $b = isset($color[2]) ? $color[2] : -1;
$k = isset($color[3]) ? $color[3] : -1; $k = isset($color[3]) ? $color[3] : -1;
$name = isset($color[4]) ? $color[4] : ''; // spot color name
if ($r >= 0) { if ($r >= 0) {
return $this->SetDrawColor($r, $g, $b, $k, $ret); return $this->SetDrawColor($r, $g, $b, $k, $ret, $name);
} }
} }
return ''; return '';
@ -4239,17 +4274,18 @@ class TCPDF {
/** /**
* Defines the color used for all drawing operations (lines, rectangles and cell borders). It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page. * Defines the color used for all drawing operations (lines, rectangles and cell borders). It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
* @param int $col1 Gray level for single color, or Red color for RGB, or Cyan color for CMYK. Value between 0 and 255 * @param int $col1 GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
* @param int $col2 Green color for RGB, or Magenta color for CMYK. Value between 0 and 255 * @param int $col2 GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
* @param int $col3 Blue color for RGB, or Yellow color for CMYK. Value between 0 and 255 * @param int $col3 BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
* @param int $col4 Key (Black) color for CMYK. Value between 0 and 255 * @param int $col4 KEY (BLACK) color for CMYK (0-100).
* @param boolean $ret if true do not send the command. * @param boolean $ret if true do not send the command.
* @param string $name spot color name (if any)
* @return string the PDF command * @return string the PDF command
* @access public * @access public
* @since 1.3 * @since 1.3
* @see SetDrawColorArray(), SetFillColor(), SetTextColor(), Line(), Rect(), Cell(), MultiCell() * @see SetDrawColorArray(), SetFillColor(), SetTextColor(), Line(), Rect(), Cell(), MultiCell()
*/ */
public function SetDrawColor($col1=0, $col2=-1, $col3=-1, $col4=-1, $ret=false) { public function SetDrawColor($col1=0, $col2=-1, $col3=-1, $col4=-1, $ret=false, $name='') {
// set default values // set default values
if (!is_numeric($col1)) { if (!is_numeric($col1)) {
$col1 = 0; $col1 = 0;
@ -4266,16 +4302,21 @@ class TCPDF {
//Set color for all stroking operations //Set color for all stroking operations
if (($col2 == -1) AND ($col3 == -1) AND ($col4 == -1)) { if (($col2 == -1) AND ($col3 == -1) AND ($col4 == -1)) {
// Grey scale // Grey scale
$this->DrawColor = sprintf('%.3F G', $col1/255); $this->DrawColor = sprintf('%.3F G', ($col1 / 255));
$this->strokecolor = array('G' => $col1); $this->strokecolor = array('G' => $col1);
} elseif ($col4 == -1) { } elseif ($col4 == -1) {
// RGB // RGB
$this->DrawColor = sprintf('%.3F %.3F %.3F RG', $col1/255, $col2/255, $col3/255); $this->DrawColor = sprintf('%.3F %.3F %.3F RG', ($col1 / 255), ($col2 / 255), ($col3 / 255));
$this->strokecolor = array('R' => $col1, 'G' => $col2, 'B' => $col3); $this->strokecolor = array('R' => $col1, 'G' => $col2, 'B' => $col3);
} else { } elseif (empty($name)) {
// CMYK // CMYK
$this->DrawColor = sprintf('%.3F %.3F %.3F %.3F K', $col1/100, $col2/100, $col3/100, $col4/100); $this->DrawColor = sprintf('%.3F %.3F %.3F %.3F K', ($col1 / 100), ($col2 / 100), ($col3 / 100), ($col4 / 100));
$this->strokecolor = array('C' => $col1, 'M' => $col2, 'Y' => $col3, 'K' => $col4); $this->strokecolor = array('C' => $col1, 'M' => $col2, 'Y' => $col3, 'K' => $col4);
} else {
// SPOT COLOR
$this->AddSpotColor($name, $col1, $col2, $col3, $col4);
$this->DrawColor = sprintf('/CS%d CS %.3F SCN', $this->spot_colors[$name]['i'], 1);
$this->strokecolor = array('C' => $col1, 'M' => $col2, 'Y' => $col3, 'K' => $col4, 'name' => $name);
} }
if ($this->page > 0) { if ($this->page > 0) {
if (!$ret) { if (!$ret) {
@ -4298,7 +4339,7 @@ class TCPDF {
if (!isset($this->spot_colors[$name])) { if (!isset($this->spot_colors[$name])) {
$this->Error('Undefined spot color: '.$name); $this->Error('Undefined spot color: '.$name);
} }
$this->DrawColor = sprintf('/CS%d CS %.3F SCN', $this->spot_colors[$name]['i'], $tint/100); $this->DrawColor = sprintf('/CS%d CS %.3F SCN', $this->spot_colors[$name]['i'], ($tint / 100));
if ($this->page > 0) { if ($this->page > 0) {
$this->_out($this->DrawColor); $this->_out($this->DrawColor);
} }
@ -4306,37 +4347,42 @@ class TCPDF {
/** /**
* Defines the color used for all filling operations (filled rectangles and cell backgrounds). * Defines the color used for all filling operations (filled rectangles and cell backgrounds).
* It can be expressed in RGB components or gray scale. * It can be expressed in RGB, CMYK or GRAY SCALE components.
* The method can be called before the first page is created and the value is retained from page to page. * The method can be called before the first page is created and the value is retained from page to page.
* @param array $color array of colors * @param array $color array of colors
* @param boolean $ret if true do not send the PDF command.
* @access public * @access public
* @since 3.1.000 (2008-6-11) * @since 3.1.000 (2008-6-11)
* @see SetFillColor() * @see SetFillColor()
*/ */
public function SetFillColorArray($color) { public function SetFillColorArray($color, $ret=false) {
if (is_array($color)) { if (is_array($color)) {
$color = array_values($color); $color = array_values($color);
$r = isset($color[0]) ? $color[0] : -1; $r = isset($color[0]) ? $color[0] : -1;
$g = isset($color[1]) ? $color[1] : -1; $g = isset($color[1]) ? $color[1] : -1;
$b = isset($color[2]) ? $color[2] : -1; $b = isset($color[2]) ? $color[2] : -1;
$k = isset($color[3]) ? $color[3] : -1; $k = isset($color[3]) ? $color[3] : -1;
$name = isset($color[4]) ? $color[4] : ''; // spot color name
if ($r >= 0) { if ($r >= 0) {
$this->SetFillColor($r, $g, $b, $k); $this->SetFillColor($r, $g, $b, $k, $ret, $name);
} }
} }
} }
/** /**
* Defines the color used for all filling operations (filled rectangles and cell backgrounds). It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page. * Defines the color used for all filling operations (filled rectangles and cell backgrounds). It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
* @param int $col1 Gray level for single color, or Red color for RGB, or Cyan color for CMYK. Value between 0 and 255 * @param int $col1 GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
* @param int $col2 Green color for RGB, or Magenta color for CMYK. Value between 0 and 255 * @param int $col2 GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
* @param int $col3 Blue color for RGB, or Yellow color for CMYK. Value between 0 and 255 * @param int $col3 BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
* @param int $col4 Key (Black) color for CMYK. Value between 0 and 255 * @param int $col4 KEY (BLACK) color for CMYK (0-100).
* @param boolean $ret if true do not send the command.
* @param string $name spot color name (if any)
* @return string the PDF command
* @access public * @access public
* @since 1.3 * @since 1.3
* @see SetFillColorArray(), SetDrawColor(), SetTextColor(), Rect(), Cell(), MultiCell() * @see SetFillColorArray(), SetDrawColor(), SetTextColor(), Rect(), Cell(), MultiCell()
*/ */
public function SetFillColor($col1=0, $col2=-1, $col3=-1, $col4=-1) { public function SetFillColor($col1=0, $col2=-1, $col3=-1, $col4=-1, $ret=false, $name='') {
// set default values // set default values
if (!is_numeric($col1)) { if (!is_numeric($col1)) {
$col1 = 0; $col1 = 0;
@ -4353,21 +4399,30 @@ class TCPDF {
//Set color for all filling operations //Set color for all filling operations
if (($col2 == -1) AND ($col3 == -1) AND ($col4 == -1)) { if (($col2 == -1) AND ($col3 == -1) AND ($col4 == -1)) {
// Grey scale // Grey scale
$this->FillColor = sprintf('%.3F g', $col1/255); $this->FillColor = sprintf('%.3F g', ($col1 / 255));
$this->bgcolor = array('G' => $col1); $this->bgcolor = array('G' => $col1);
} elseif ($col4 == -1) { } elseif ($col4 == -1) {
// RGB // RGB
$this->FillColor = sprintf('%.3F %.3F %.3F rg', $col1/255, $col2/255, $col3/255); $this->FillColor = sprintf('%.3F %.3F %.3F rg', ($col1 / 255), ($col2 / 255), ($col3 / 255));
$this->bgcolor = array('R' => $col1, 'G' => $col2, 'B' => $col3); $this->bgcolor = array('R' => $col1, 'G' => $col2, 'B' => $col3);
} else { } elseif (empty($name)) {
// CMYK // CMYK
$this->FillColor = sprintf('%.3F %.3F %.3F %.3F k', $col1/100, $col2/100, $col3/100, $col4/100); $this->FillColor = sprintf('%.3F %.3F %.3F %.3F k', ($col1 / 100), ($col2 / 100), ($col3 / 100), ($col4 / 100));
$this->bgcolor = array('C' => $col1, 'M' => $col2, 'Y' => $col3, 'K' => $col4); $this->bgcolor = array('C' => $col1, 'M' => $col2, 'Y' => $col3, 'K' => $col4);
} else {
// SPOT COLOR
$this->AddSpotColor($name, $col1, $col2, $col3, $col4);
$this->FillColor = sprintf('/CS%d cs %.3F scn', $this->spot_colors[$name]['i'], 1);
$this->bgcolor = array('C' => $col1, 'M' => $col2, 'Y' => $col3, 'K' => $col4, 'name' => $name);
} }
$this->ColorFlag = ($this->FillColor != $this->TextColor); $this->ColorFlag = ($this->FillColor != $this->TextColor);
if ($this->page > 0) { if ($this->page > 0) {
$this->_out($this->FillColor); if (!$ret) {
$this->_out($this->FillColor);
}
return $this->FillColor;
} }
return '';
} }
/** /**
@ -4382,7 +4437,7 @@ class TCPDF {
if (!isset($this->spot_colors[$name])) { if (!isset($this->spot_colors[$name])) {
$this->Error('Undefined spot color: '.$name); $this->Error('Undefined spot color: '.$name);
} }
$this->FillColor = sprintf('/CS%d cs %.3F scn', $this->spot_colors[$name]['i'], $tint/100); $this->FillColor = sprintf('/CS%d cs %.3F scn', $this->spot_colors[$name]['i'], ($tint / 100));
$this->ColorFlag = ($this->FillColor != $this->TextColor); $this->ColorFlag = ($this->FillColor != $this->TextColor);
if ($this->page > 0) { if ($this->page > 0) {
$this->_out($this->FillColor); $this->_out($this->FillColor);
@ -4393,34 +4448,38 @@ class TCPDF {
* Defines the color used for text. It can be expressed in RGB components or gray scale. * Defines the color used for text. It can be expressed in RGB components or gray scale.
* The method can be called before the first page is created and the value is retained from page to page. * The method can be called before the first page is created and the value is retained from page to page.
* @param array $color array of colors * @param array $color array of colors
* @param boolean $ret if true do not send the PDF command.
* @access public * @access public
* @since 3.1.000 (2008-6-11) * @since 3.1.000 (2008-6-11)
* @see SetFillColor() * @see SetFillColor()
*/ */
public function SetTextColorArray($color) { public function SetTextColorArray($color, $ret=false) {
if (is_array($color)) { if (is_array($color)) {
$color = array_values($color); $color = array_values($color);
$r = isset($color[0]) ? $color[0] : -1; $r = isset($color[0]) ? $color[0] : -1;
$g = isset($color[1]) ? $color[1] : -1; $g = isset($color[1]) ? $color[1] : -1;
$b = isset($color[2]) ? $color[2] : -1; $b = isset($color[2]) ? $color[2] : -1;
$k = isset($color[3]) ? $color[3] : -1; $k = isset($color[3]) ? $color[3] : -1;
$name = isset($color[4]) ? $color[4] : ''; // spot color name
if ($r >= 0) { if ($r >= 0) {
$this->SetTextColor($r, $g, $b, $k); $this->SetTextColor($r, $g, $b, $k, $ret, $name);
} }
} }
} }
/** /**
* Defines the color used for text. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page. * Defines the color used for text. It can be expressed in RGB components or gray scale. The method can be called before the first page is created and the value is retained from page to page.
* @param int $col1 Gray level for single color, or Red color for RGB, or Cyan color for CMYK. Value between 0 and 255 * @param int $col1 GRAY level for single color, or Red color for RGB (0-255), or CYAN color for CMYK (0-100).
* @param int $col2 Green color for RGB, or Magenta color for CMYK. Value between 0 and 255 * @param int $col2 GREEN color for RGB (0-255), or MAGENTA color for CMYK (0-100).
* @param int $col3 Blue color for RGB, or Yellow color for CMYK. Value between 0 and 255 * @param int $col3 BLUE color for RGB (0-255), or YELLOW color for CMYK (0-100).
* @param int $col4 Key (Black) color for CMYK. Value between 0 and 255 * @param int $col4 KEY (BLACK) color for CMYK (0-100).
* @param boolean $ret if true do not send the command.
* @param string $name spot color name (if any)
* @access public * @access public
* @since 1.3 * @since 1.3
* @see SetTextColorArray(), SetDrawColor(), SetFillColor(), Text(), Cell(), MultiCell() * @see SetTextColorArray(), SetDrawColor(), SetFillColor(), Text(), Cell(), MultiCell()
*/ */
public function SetTextColor($col1=0, $col2=-1, $col3=-1, $col4=-1) { public function SetTextColor($col1=0, $col2=-1, $col3=-1, $col4=-1, $ret=false, $name='') {
// set default values // set default values
if (!is_numeric($col1)) { if (!is_numeric($col1)) {
$col1 = 0; $col1 = 0;
@ -4437,16 +4496,21 @@ class TCPDF {
//Set color for text //Set color for text
if (($col2 == -1) AND ($col3 == -1) AND ($col4 == -1)) { if (($col2 == -1) AND ($col3 == -1) AND ($col4 == -1)) {
// Grey scale // Grey scale
$this->TextColor = sprintf('%.3F g', $col1/255); $this->TextColor = sprintf('%.3F g', ($col1 / 255));
$this->fgcolor = array('G' => $col1); $this->fgcolor = array('G' => $col1);
} elseif ($col4 == -1) { } elseif ($col4 == -1) {
// RGB // RGB
$this->TextColor = sprintf('%.3F %.3F %.3F rg', $col1/255, $col2/255, $col3/255); $this->TextColor = sprintf('%.3F %.3F %.3F rg', ($col1 / 255), ($col2 / 255), ($col3 / 255));
$this->fgcolor = array('R' => $col1, 'G' => $col2, 'B' => $col3); $this->fgcolor = array('R' => $col1, 'G' => $col2, 'B' => $col3);
} else { } elseif (empty($name)) {
// CMYK // CMYK
$this->TextColor = sprintf('%.3F %.3F %.3F %.3F k', $col1/100, $col2/100, $col3/100, $col4/100); $this->TextColor = sprintf('%.3F %.3F %.3F %.3F k', ($col1 / 100), ($col2 / 100), ($col3 / 100), ($col4 / 100));
$this->fgcolor = array('C' => $col1, 'M' => $col2, 'Y' => $col3, 'K' => $col4); $this->fgcolor = array('C' => $col1, 'M' => $col2, 'Y' => $col3, 'K' => $col4);
} else {
// SPOT COLOR
$this->AddSpotColor($name, $col1, $col2, $col3, $col4);
$this->TextColor = sprintf('/CS%d cs %.3F scn', $this->spot_colors[$name]['i'], 1);
$this->fgcolor = array('C' => $col1, 'M' => $col2, 'Y' => $col3, 'K' => $col4, 'name' => $name);
} }
$this->ColorFlag = ($this->FillColor != $this->TextColor); $this->ColorFlag = ($this->FillColor != $this->TextColor);
} }
@ -4463,7 +4527,7 @@ class TCPDF {
if (!isset($this->spot_colors[$name])) { if (!isset($this->spot_colors[$name])) {
$this->Error('Undefined spot color: '.$name); $this->Error('Undefined spot color: '.$name);
} }
$this->TextColor = sprintf('/CS%d cs %.3F scn', $this->spot_colors[$name]['i'], $tint/100); $this->TextColor = sprintf('/CS%d cs %.3F scn', $this->spot_colors[$name]['i'], ($tint / 100));
$this->ColorFlag = ($this->FillColor != $this->TextColor); $this->ColorFlag = ($this->FillColor != $this->TextColor);
if ($this->page > 0) { if ($this->page > 0) {
$this->_out($this->TextColor); $this->_out($this->TextColor);
@ -10225,7 +10289,7 @@ class TCPDF {
$out = '[/Separation /'.str_replace(' ', '#20', $name); $out = '[/Separation /'.str_replace(' ', '#20', $name);
$out .= ' /DeviceCMYK <<'; $out .= ' /DeviceCMYK <<';
$out .= ' /Range [0 1 0 1 0 1 0 1] /C0 [0 0 0 0]'; $out .= ' /Range [0 1 0 1 0 1 0 1] /C0 [0 0 0 0]';
$out .= ' '.sprintf('/C1 [%.4F %.4F %.4F %.4F] ', $color['c']/100, $color['m']/100, $color['y']/100, $color['k']/100); $out .= ' '.sprintf('/C1 [%.4F %.4F %.4F %.4F] ', ($color['c'] / 100), ($color['m'] / 100), ($color['y'] / 100), ($color['k'] / 100));
$out .= ' /FunctionType 2 /Domain [0 1] /N 1>>]'; $out .= ' /FunctionType 2 /Domain [0 1] /N 1>>]';
$out .= "\n".'endobj'; $out .= "\n".'endobj';
$this->_out($out); $this->_out($out);
@ -10347,19 +10411,14 @@ class TCPDF {
} }
if (!$this->empty_string($this->keywords)) { if (!$this->empty_string($this->keywords)) {
// Keywords associated with the document. // Keywords associated with the document.
$out .= ' /Keywords '.$this->_textstring($this->keywords.' TCP'.'DF', $oid); $out .= ' /Keywords '.$this->_textstring($this->keywords.' TCPDF', $oid);
} }
if (!$this->empty_string($this->creator)) { if (!$this->empty_string($this->creator)) {
// If the document was converted to PDF from another format, the name of the conforming product that created the original document from which it was converted. // If the document was converted to PDF from another format, the name of the conforming product that created the original document from which it was converted.
$out .= ' /Creator '.$this->_textstring($this->creator, $oid); $out .= ' /Creator '.$this->_textstring($this->creator, $oid);
} }
if (defined('PDF_PRODUCER')) { // default producer
// If the document was converted to PDF from another format, the name of the conforming product that converted it to PDF. $out .= ' /Producer '.$this->_textstring("\x54\x43\x50\x44\x46\x20".$this->tcpdf_version."\x20\x28\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x74\x63\x70\x64\x66\x2e\x6f\x72\x67\x29", $oid);
$out .= ' /Producer '.$this->_textstring(PDF_PRODUCER.' (TCP'.'DF)', $oid);
} else {
// default producer
$out .= ' /Producer '.$this->_textstring('TCP'.'DF', $oid);
}
// The date and time the document was created, in human-readable form // The date and time the document was created, in human-readable form
$out .= ' /CreationDate '.$this->_datestring(); $out .= ' /CreationDate '.$this->_datestring();
// The date and time the document was most recently modified, in human-readable form // The date and time the document was most recently modified, in human-readable form
@ -11324,14 +11383,14 @@ class TCPDF {
} }
/** /**
* Returns an associative array (keys: R,G,B) from an html color name or a six-digit or three-digit hexadecimal color representation (i.e. #3FE5AA or #7FF). * Returns an array (RGB or CMYK) from an html color name or a six-digit (i.e. #3FE5AA) or three-digit (i.e. #7FF) hexadecimal color representation.
* @param string $color html color * @param string $hcolor html color
* @return array RGB color or false in case of error. * @return array RGB or CMYK color, or false in case of error.
* @access public * @access public
*/ */
public function convertHTMLColorToDec($color='#FFFFFF') { public function convertHTMLColorToDec($hcolor='#FFFFFF') {
$returncolor = false; $returncolor = false;
$color = preg_replace('/[\s]*/', '', $color); // remove extra spaces $color = preg_replace('/[\s]*/', '', $hcolor); // remove extra spaces
$color = strtolower($color); $color = strtolower($color);
if (($dotpos = strpos($color, '.')) !== false) { if (($dotpos = strpos($color, '.')) !== false) {
// remove class parent (i.e.: color.red) // remove class parent (i.e.: color.red)
@ -11345,6 +11404,16 @@ class TCPDF {
$codes = substr($color, 4); $codes = substr($color, 4);
$codes = str_replace(')', '', $codes); $codes = str_replace(')', '', $codes);
$returncolor = explode(',', $codes); $returncolor = explode(',', $codes);
foreach ($returncolor as $key => $val) {
if (strpos($val, '%') > 0) {
// percentage
$returncolor[$key] = (255 * intval($val) / 100);
} else {
$returncolor[$key] = intval($val);
}
// normalize value
$returncolor[$key] = max(0, min(255, $returncolor[$key]));
}
return $returncolor; return $returncolor;
} }
// CMYK ARRAY // CMYK ARRAY
@ -11352,13 +11421,30 @@ class TCPDF {
$codes = substr($color, 5); $codes = substr($color, 5);
$codes = str_replace(')', '', $codes); $codes = str_replace(')', '', $codes);
$returncolor = explode(',', $codes); $returncolor = explode(',', $codes);
foreach ($returncolor as $key => $val) {
if (strpos($val, '%') !== false) {
// percentage
$returncolor[$key] = (100 * intval($val) / 100);
} else {
$returncolor[$key] = intval($val);
}
// normalize value
$returncolor[$key] = max(0, min(100, $returncolor[$key]));
}
return $returncolor; return $returncolor;
} }
// COLOR NAME // COLOR NAME
if (substr($color, 0, 1) != '#') { if (substr($color, 0, 1) != '#') {
// decode color name // decode color name
if (isset($this->webcolor[$color])) { if (isset($this->webcolor[$color])) {
// web color
$color_code = $this->webcolor[$color]; $color_code = $this->webcolor[$color];
} elseif (isset($this->spot_colors[$hcolor])) {
// custom defined spot color
return array($this->spot_colors[$hcolor]['c'], $this->spot_colors[$hcolor]['m'], $this->spot_colors[$hcolor]['y'], $this->spot_colors[$hcolor]['k'], $hcolor);
} elseif (isset($this->spotcolor[$color])) {
// spot color from configuration file
return $this->spotcolor[$color];
} else { } else {
return false; return false;
} }
@ -11372,16 +11458,18 @@ class TCPDF {
$r = substr($color_code, 0, 1); $r = substr($color_code, 0, 1);
$g = substr($color_code, 1, 1); $g = substr($color_code, 1, 1);
$b = substr($color_code, 2, 1); $b = substr($color_code, 2, 1);
$returncolor['R'] = hexdec($r.$r); $returncolor = array();
$returncolor['G'] = hexdec($g.$g); $returncolor['R'] = max(0, min(255, hexdec($r.$r)));
$returncolor['B'] = hexdec($b.$b); $returncolor['G'] = max(0, min(255, hexdec($g.$g)));
$returncolor['B'] = max(0, min(255, hexdec($b.$b)));
break; break;
} }
case 6: { case 6: {
// six-digit hexadecimal representation // six-digit hexadecimal representation
$returncolor['R'] = hexdec(substr($color_code, 0, 2)); $returncolor = array();
$returncolor['G'] = hexdec(substr($color_code, 2, 2)); $returncolor['R'] = max(0, min(255, hexdec(substr($color_code, 0, 2))));
$returncolor['B'] = hexdec(substr($color_code, 4, 2)); $returncolor['G'] = max(0, min(255, hexdec(substr($color_code, 2, 2))));
$returncolor['B'] = max(0, min(255, hexdec(substr($color_code, 4, 2))));
break; break;
} }
} }
@ -12830,6 +12918,7 @@ class TCPDF {
* @param float $angf: Angle finish of draw line. Default value: 360. * @param float $angf: Angle finish of draw line. Default value: 360.
* @param boolean $pie if true do not mark the border point (used to draw pie sectors). * @param boolean $pie if true do not mark the border point (used to draw pie sectors).
* @param integer $nc Number of curves used to draw a 90 degrees portion of ellipse. * @param integer $nc Number of curves used to draw a 90 degrees portion of ellipse.
* @return array bounding box coordinates (x min, y min, x max, y max)
* @author Nicola Asuni * @author Nicola Asuni
* @access protected * @access protected
* @since 4.9.019 (2010-04-26) * @since 4.9.019 (2010-04-26)
@ -12839,6 +12928,10 @@ class TCPDF {
if ($nc < 2) { if ($nc < 2) {
$nc = 2; $nc = 2;
} }
$xmin = 2147483647;
$ymin = 2147483647;
$xmax = 0;
$ymax = 0;
if ($pie) { if ($pie) {
// center of the arc // center of the arc
$this->_outPoint($xc, $yc); $this->_outPoint($xc, $yc);
@ -12903,7 +12996,18 @@ class TCPDF {
$qx2 = ($alpha * ((-$rx * $cos_xang * $sin_ang) - ($ry * $sin_xang * $cos_ang))); $qx2 = ($alpha * ((-$rx * $cos_xang * $sin_ang) - ($ry * $sin_xang * $cos_ang)));
$qy2 = ($alpha * ((-$rx * $sin_xang * $sin_ang) + ($ry * $cos_xang * $cos_ang))); $qy2 = ($alpha * ((-$rx * $sin_xang * $sin_ang) + ($ry * $cos_xang * $cos_ang)));
// draw arc // draw arc
$this->_outCurve(($px1 + $qx1), ($this->h - ($py1 + $qy1)), ($px2 - $qx2), ($this->h - ($py2 - $qy2)), $px2, ($this->h - $py2)); $cx1 = ($px1 + $qx1);
$cy1 = ($this->h - ($py1 + $qy1));
$cx2 = ($px2 - $qx2);
$cy2 = ($this->h - ($py2 - $qy2));
$cx3 = $px2;
$cy3 = ($this->h - $py2);
$this->_outCurve($cx1, $cy1, $cx2, $cy2, $cx3, $cy3);
// get bounding box coordinates
$xmin = min($xmin, $cx1, $cx2, $cx3);
$ymin = min($ymin, $cy1, $cy2, $cy3);
$xmax = max($xmax, $cx1, $cx2, $cx3);
$ymax = max($ymax, $cy1, $cy2, $cy3);
// move to next point // move to next point
$px1 = $px2; $px1 = $px2;
$py1 = $py2; $py1 = $py2;
@ -12912,7 +13016,13 @@ class TCPDF {
} }
if ($pie) { if ($pie) {
$this->_outLine($xc, $yc); $this->_outLine($xc, $yc);
// get bounding box coordinates
$xmin = min($xmin, $xc);
$ymin = min($ymin, $yc);
$xmax = max($xmax, $xc);
$ymax = max($ymax, $yc);
} }
return array($xmin, $ymin, $xmax, $ymax);
} }
/** /**
@ -24617,6 +24727,12 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
$gradient['coords'][2] += $x; $gradient['coords'][2] += $x;
$gradient['coords'][3] += $y; $gradient['coords'][3] += $y;
} }
if ($w <= 0) {
$w = 1;
}
if ($h <= 0) {
$h = 1;
}
// calculate percentages // calculate percentages
$gradient['coords'][0] = ($gradient['coords'][0] - $x) / $w; $gradient['coords'][0] = ($gradient['coords'][0] - $x) / $w;
$gradient['coords'][1] = ($gradient['coords'][1] - $y) / $h; $gradient['coords'][1] = ($gradient['coords'][1] - $y) / $h;
@ -24997,10 +25113,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
$xb = ($x + (2 * $x1)) / 3; $xb = ($x + (2 * $x1)) / 3;
$yb = ($y + (2 * $y1)) / 3; $yb = ($y + (2 * $y1)) / 3;
$this->_outCurve($xa, $ya, $xb, $yb, $x, $y); $this->_outCurve($xa, $ya, $xb, $yb, $x, $y);
$xmin = min($xmin, $x, $x1, $x2); $xmin = min($xmin, $x, $xa, $xb);
$ymin = min($ymin, $y, $y1, $y2); $ymin = min($ymin, $y, $ya, $yb);
$xmax = max($xmax, $x, $x1, $x2); $xmax = max($xmax, $x, $xa, $xb);
$ymax = max($ymax, $y, $y1, $y2); $ymax = max($ymax, $y, $ya, $yb);
if ($relcoord) { if ($relcoord) {
$xoffset = $x; $xoffset = $x;
$yoffset = $y; $yoffset = $y;
@ -25074,7 +25190,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
if ((isset($paths[($key + 1)][1])) AND (trim($paths[($key + 1)][1]) == 'z')) { if ((isset($paths[($key + 1)][1])) AND (trim($paths[($key + 1)][1]) == 'z')) {
$pie = true; $pie = true;
} }
$this->_outellipticalarc($cx, $cy, $rx, $ry, $ang, $angs, $angf, $pie, 2); list($xmin, $ymin, $xmax, $ymax) = $this->_outellipticalarc($cx, $cy, $rx, $ry, $ang, $angs, $angf, $pie, 2);
$this->_outPoint($x, $y); $this->_outPoint($x, $y);
$xmin = min($xmin, $x); $xmin = min($xmin, $x);
$ymin = min($ymin, $y); $ymin = min($ymin, $y);