mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-11-14 00:54:06 +00:00
4.9.008
This commit is contained in:
parent
da2c09aea1
commit
01cff1de45
@ -1,3 +1,9 @@
|
|||||||
|
4.9.008 (2010-04-03)
|
||||||
|
- Additional line space after table header was removed.
|
||||||
|
- Support for HTML lists in multicolumn mode was added.
|
||||||
|
- The method setTextRenderingMode() was added to set text rendering modes (see the example n. 26).
|
||||||
|
- The following HTML attributes were added to set text rendering modes (see the example n. 26): stroke, strokecolor, fill.
|
||||||
|
|
||||||
4.9.007 (2010-04-03)
|
4.9.007 (2010-04-03)
|
||||||
- Font Descent computation was fixed (patch #2981441).
|
- Font Descent computation was fixed (patch #2981441).
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ http://sourceforge.net/donate/index.php?group_id=128076
|
|||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
|
|
||||||
Name: TCPDF
|
Name: TCPDF
|
||||||
Version: 4.9.007
|
Version: 4.9.008
|
||||||
Release date: 2010-04-03
|
Release date: 2010-04-03
|
||||||
Author: Nicola Asuni
|
Author: Nicola Asuni
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
<div class="credit">
|
<div class="credit">
|
||||||
<hr />
|
<hr />
|
||||||
Documentation generated on Sat, 03 Apr 2010 10:08:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -5548,7 +5548,7 @@ $frame)</code>
|
|||||||
|
|
||||||
<div class="credit">
|
<div class="credit">
|
||||||
<hr />
|
<hr />
|
||||||
Documentation generated on Sat, 03 Apr 2010 10:08:03 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:40 +0200 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
@ -296,7 +296,7 @@ $type)</code>
|
|||||||
|
|
||||||
<div class="credit">
|
<div class="credit">
|
||||||
<hr />
|
<hr />
|
||||||
Documentation generated on Sat, 03 Apr 2010 10:08:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -1374,7 +1374,7 @@ $type)</code>
|
|||||||
|
|
||||||
<div class="credit">
|
<div class="credit">
|
||||||
<hr />
|
<hr />
|
||||||
Documentation generated on Sat, 03 Apr 2010 10:08:03 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -102,7 +102,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 Sat, 03 Apr 2010 10:08:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -102,7 +102,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 Sat, 03 Apr 2010 10:08:03 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -539,7 +539,7 @@ Configuration file for TCPDF.<br /><br /><br /><br />
|
|||||||
|
|
||||||
<div class="credit">
|
<div class="credit">
|
||||||
<hr />
|
<hr />
|
||||||
Documentation generated on Sat, 03 Apr 2010 10:08:06 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:43 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -94,7 +94,7 @@ Array of WEB safe colors.<br /><br /><br /><br />
|
|||||||
|
|
||||||
<div class="credit">
|
<div class="credit">
|
||||||
<hr />
|
<hr />
|
||||||
Documentation generated on Sat, 03 Apr 2010 10:08:03 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:40 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -477,7 +477,7 @@ string $string, [int $split_length = 1])</code>
|
|||||||
|
|
||||||
<div class="credit">
|
<div class="credit">
|
||||||
<hr />
|
<hr />
|
||||||
Documentation generated on Sat, 03 Apr 2010 10:08:03 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:40 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -79,7 +79,7 @@ This is a PHP class for generating PDF documents without requiring external exte
|
|||||||
<td><b>author:</b> </td><td>Nicola Asuni</td>
|
<td><b>author:</b> </td><td>Nicola Asuni</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>version:</b> </td><td>4.9.007</td>
|
<td><b>version:</b> </td><td>4.9.008</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>copyright:</b> </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> </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>
|
||||||
@ -110,7 +110,7 @@ unicode data<br /><br /></div>
|
|||||||
<div class="tags">
|
<div class="tags">
|
||||||
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
<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">
|
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
||||||
<code>PDF_PRODUCER = 'TCPDF 4.9.007 (http://www.tcpdf.org)'</code>
|
<code>PDF_PRODUCER = 'TCPDF 4.9.008 (http://www.tcpdf.org)'</code>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ unicode data<br /><br /></div>
|
|||||||
|
|
||||||
<div class="credit">
|
<div class="credit">
|
||||||
<hr />
|
<hr />
|
||||||
Documentation generated on Sat, 03 Apr 2010 10:08:04 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:40 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -243,7 +243,7 @@ Unicode Include file for TCPDF.<br /><br /><br /><br />
|
|||||||
|
|
||||||
<div class="credit">
|
<div class="credit">
|
||||||
<hr />
|
<hr />
|
||||||
Documentation generated on Sat, 03 Apr 2010 10:08:06 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:43 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -891,6 +891,8 @@
|
|||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listcount">TCPDF::$listcount</a></dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listcount">TCPDF::$listcount</a></dd>
|
||||||
<dt><b>$listindent</b></dt>
|
<dt><b>$listindent</b></dt>
|
||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listindent">TCPDF::$listindent</a></dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listindent">TCPDF::$listindent</a></dd>
|
||||||
|
<dt><b>$listindentlevel</b></dt>
|
||||||
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listindentlevel">TCPDF::$listindentlevel</a></dd>
|
||||||
<dt><b>$listnum</b></dt>
|
<dt><b>$listnum</b></dt>
|
||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listnum">TCPDF::$listnum</a></dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listnum">TCPDF::$listnum</a></dd>
|
||||||
<dt><b>$listordered</b></dt>
|
<dt><b>$listordered</b></dt>
|
||||||
@ -1299,6 +1301,8 @@
|
|||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$start_transaction_y">TCPDF::$start_transaction_y</a><br> Store Y position when startTransaction() is called.</dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$start_transaction_y">TCPDF::$start_transaction_y</a><br> Store Y position when startTransaction() is called.</dd>
|
||||||
<dt><b>$state</b></dt>
|
<dt><b>$state</b></dt>
|
||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$state">TCPDF::$state</a></dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$state">TCPDF::$state</a></dd>
|
||||||
|
<dt><b>$strokecolor</b></dt>
|
||||||
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$strokecolor">TCPDF::$strokecolor</a></dd>
|
||||||
<dt><b>$structured</b></dt>
|
<dt><b>$structured</b></dt>
|
||||||
<dd>in file qrcode.php, variable <a href="com-tecnick-tcpdf/QRcode.html#var$structured">QRcode::$structured</a></dd>
|
<dd>in file qrcode.php, variable <a href="com-tecnick-tcpdf/QRcode.html#var$structured">QRcode::$structured</a></dd>
|
||||||
<dt><b>$subject</b></dt>
|
<dt><b>$subject</b></dt>
|
||||||
@ -1465,6 +1469,8 @@
|
|||||||
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetTextColor">TCPDF::SetTextColor()</a><br> 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.</dd>
|
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetTextColor">TCPDF::SetTextColor()</a><br> 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.</dd>
|
||||||
<dt><b>SetTextColorArray</b></dt>
|
<dt><b>SetTextColorArray</b></dt>
|
||||||
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetTextColorArray">TCPDF::SetTextColorArray()</a><br> Defines the color used for text. It can be expressed in RGB components or gray scale.</dd>
|
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetTextColorArray">TCPDF::SetTextColorArray()</a><br> Defines the color used for text. It can be expressed in RGB components or gray scale.</dd>
|
||||||
|
<dt><b>setTextRenderingMode</b></dt>
|
||||||
|
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodsetTextRenderingMode">TCPDF::setTextRenderingMode()</a><br> Set Text rendering mode.</dd>
|
||||||
<dt><b>SetTextSpotColor</b></dt>
|
<dt><b>SetTextSpotColor</b></dt>
|
||||||
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetTextSpotColor">TCPDF::SetTextSpotColor()</a><br> Defines the spot color used for text.</dd>
|
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetTextSpotColor">TCPDF::SetTextSpotColor()</a><br> Defines the spot color used for text.</dd>
|
||||||
<dt><b>SetTitle</b></dt>
|
<dt><b>SetTitle</b></dt>
|
||||||
@ -1527,6 +1533,10 @@
|
|||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$TextColor">TCPDF::$TextColor</a></dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$TextColor">TCPDF::$TextColor</a></dd>
|
||||||
<dt><b>$textindent</b></dt>
|
<dt><b>$textindent</b></dt>
|
||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$textindent">TCPDF::$textindent</a><br> Text indentation value (used for text-indent CSS attribute)</dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$textindent">TCPDF::$textindent</a><br> Text indentation value (used for text-indent CSS attribute)</dd>
|
||||||
|
<dt><b>$textrendermode</b></dt>
|
||||||
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$textrendermode">TCPDF::$textrendermode</a><br> Text rendering mode: 0 = Fill text; 1 = Stroke text; 2 = Fill, then stroke text; 3 = Neither fill nor stroke text (invisible); 4 = Fill text and add to path for clipping; 5 = Stroke text and add to path for clipping; 6 = Fill, then stroke text and add to path for clipping; 7 = Add text to path for clipping.</dd>
|
||||||
|
<dt><b>$textstrokewidth</b></dt>
|
||||||
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$textstrokewidth">TCPDF::$textstrokewidth</a><br> Text stroke width in doc units</dd>
|
||||||
<dt><b>$thead</b></dt>
|
<dt><b>$thead</b></dt>
|
||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$thead">TCPDF::$thead</a><br> Table header content to be repeated on each new page</dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$thead">TCPDF::$thead</a><br> Table header content to be repeated on each new page</dd>
|
||||||
<dt><b>$theadMargins</b></dt>
|
<dt><b>$theadMargins</b></dt>
|
||||||
@ -1554,7 +1564,7 @@
|
|||||||
<dt><b>TCPDFBarcode</b></dt>
|
<dt><b>TCPDFBarcode</b></dt>
|
||||||
<dd>in file barcodes.php, class <a href="com-tecnick-tcpdf/TCPDFBarcode.html">TCPDFBarcode</a><br> PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /></dd>
|
<dd>in file barcodes.php, class <a href="com-tecnick-tcpdf/TCPDFBarcode.html">TCPDFBarcode</a><br> PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /></dd>
|
||||||
<dt><b>Text</b></dt>
|
<dt><b>Text</b></dt>
|
||||||
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodText">TCPDF::Text()</a><br> Prints a character string.</dd>
|
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodText">TCPDF::Text()</a><br> DEPRECATED! Prints a character string.</dd>
|
||||||
<dt><b>TextField</b></dt>
|
<dt><b>TextField</b></dt>
|
||||||
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodTextField">TCPDF::TextField()</a><br> Creates a text field</dd>
|
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodTextField">TCPDF::TextField()</a><br> Creates a text field</dd>
|
||||||
<dt><b>toUpper</b></dt>
|
<dt><b>toUpper</b></dt>
|
||||||
@ -1844,7 +1854,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 Sat, 03 Apr 2010 10:08:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -1054,6 +1054,8 @@
|
|||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listcount">TCPDF::$listcount</a></dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listcount">TCPDF::$listcount</a></dd>
|
||||||
<dt><b>$listindent</b></dt>
|
<dt><b>$listindent</b></dt>
|
||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listindent">TCPDF::$listindent</a></dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listindent">TCPDF::$listindent</a></dd>
|
||||||
|
<dt><b>$listindentlevel</b></dt>
|
||||||
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listindentlevel">TCPDF::$listindentlevel</a></dd>
|
||||||
<dt><b>$listnum</b></dt>
|
<dt><b>$listnum</b></dt>
|
||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listnum">TCPDF::$listnum</a></dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$listnum">TCPDF::$listnum</a></dd>
|
||||||
<dt><b>$listordered</b></dt>
|
<dt><b>$listordered</b></dt>
|
||||||
@ -1462,6 +1464,8 @@
|
|||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$start_transaction_y">TCPDF::$start_transaction_y</a><br> Store Y position when startTransaction() is called.</dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$start_transaction_y">TCPDF::$start_transaction_y</a><br> Store Y position when startTransaction() is called.</dd>
|
||||||
<dt><b>$state</b></dt>
|
<dt><b>$state</b></dt>
|
||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$state">TCPDF::$state</a></dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$state">TCPDF::$state</a></dd>
|
||||||
|
<dt><b>$strokecolor</b></dt>
|
||||||
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$strokecolor">TCPDF::$strokecolor</a></dd>
|
||||||
<dt><b>$structured</b></dt>
|
<dt><b>$structured</b></dt>
|
||||||
<dd>in file qrcode.php, variable <a href="com-tecnick-tcpdf/QRcode.html#var$structured">QRcode::$structured</a></dd>
|
<dd>in file qrcode.php, variable <a href="com-tecnick-tcpdf/QRcode.html#var$structured">QRcode::$structured</a></dd>
|
||||||
<dt><b>$subject</b></dt>
|
<dt><b>$subject</b></dt>
|
||||||
@ -1628,6 +1632,8 @@
|
|||||||
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetTextColor">TCPDF::SetTextColor()</a><br> 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.</dd>
|
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetTextColor">TCPDF::SetTextColor()</a><br> 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.</dd>
|
||||||
<dt><b>SetTextColorArray</b></dt>
|
<dt><b>SetTextColorArray</b></dt>
|
||||||
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetTextColorArray">TCPDF::SetTextColorArray()</a><br> Defines the color used for text. It can be expressed in RGB components or gray scale.</dd>
|
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetTextColorArray">TCPDF::SetTextColorArray()</a><br> Defines the color used for text. It can be expressed in RGB components or gray scale.</dd>
|
||||||
|
<dt><b>setTextRenderingMode</b></dt>
|
||||||
|
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodsetTextRenderingMode">TCPDF::setTextRenderingMode()</a><br> Set Text rendering mode.</dd>
|
||||||
<dt><b>SetTextSpotColor</b></dt>
|
<dt><b>SetTextSpotColor</b></dt>
|
||||||
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetTextSpotColor">TCPDF::SetTextSpotColor()</a><br> Defines the spot color used for text.</dd>
|
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodSetTextSpotColor">TCPDF::SetTextSpotColor()</a><br> Defines the spot color used for text.</dd>
|
||||||
<dt><b>SetTitle</b></dt>
|
<dt><b>SetTitle</b></dt>
|
||||||
@ -1690,6 +1696,10 @@
|
|||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$TextColor">TCPDF::$TextColor</a></dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$TextColor">TCPDF::$TextColor</a></dd>
|
||||||
<dt><b>$textindent</b></dt>
|
<dt><b>$textindent</b></dt>
|
||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$textindent">TCPDF::$textindent</a><br> Text indentation value (used for text-indent CSS attribute)</dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$textindent">TCPDF::$textindent</a><br> Text indentation value (used for text-indent CSS attribute)</dd>
|
||||||
|
<dt><b>$textrendermode</b></dt>
|
||||||
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$textrendermode">TCPDF::$textrendermode</a><br> Text rendering mode: 0 = Fill text; 1 = Stroke text; 2 = Fill, then stroke text; 3 = Neither fill nor stroke text (invisible); 4 = Fill text and add to path for clipping; 5 = Stroke text and add to path for clipping; 6 = Fill, then stroke text and add to path for clipping; 7 = Add text to path for clipping.</dd>
|
||||||
|
<dt><b>$textstrokewidth</b></dt>
|
||||||
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$textstrokewidth">TCPDF::$textstrokewidth</a><br> Text stroke width in doc units</dd>
|
||||||
<dt><b>$thead</b></dt>
|
<dt><b>$thead</b></dt>
|
||||||
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$thead">TCPDF::$thead</a><br> Table header content to be repeated on each new page</dd>
|
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$thead">TCPDF::$thead</a><br> Table header content to be repeated on each new page</dd>
|
||||||
<dt><b>$theadMargins</b></dt>
|
<dt><b>$theadMargins</b></dt>
|
||||||
@ -1717,7 +1727,7 @@
|
|||||||
<dt><b>TCPDFBarcode</b></dt>
|
<dt><b>TCPDFBarcode</b></dt>
|
||||||
<dd>in file barcodes.php, class <a href="com-tecnick-tcpdf/TCPDFBarcode.html">TCPDFBarcode</a><br> PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /></dd>
|
<dd>in file barcodes.php, class <a href="com-tecnick-tcpdf/TCPDFBarcode.html">TCPDFBarcode</a><br> PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /></dd>
|
||||||
<dt><b>Text</b></dt>
|
<dt><b>Text</b></dt>
|
||||||
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodText">TCPDF::Text()</a><br> Prints a character string.</dd>
|
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodText">TCPDF::Text()</a><br> DEPRECATED! Prints a character string.</dd>
|
||||||
<dt><b>TextField</b></dt>
|
<dt><b>TextField</b></dt>
|
||||||
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodTextField">TCPDF::TextField()</a><br> Creates a text field</dd>
|
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodTextField">TCPDF::TextField()</a><br> Creates a text field</dd>
|
||||||
<dt><b>toUpper</b></dt>
|
<dt><b>toUpper</b></dt>
|
||||||
@ -1873,7 +1883,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 Sat, 03 Apr 2010 10:08:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -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 Sat, 03 Apr 2010 10:08:06 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:43 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -64,7 +64,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 Sat, 03 Apr 2010 10:08:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -64,7 +64,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 Sat, 03 Apr 2010 10:08:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
Documentation generated on Sat, 03 Apr 2010 18:46:39 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
||||||
</div>
|
</div>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
</td>
|
</td>
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
//============================================================+
|
//============================================================+
|
||||||
// File name : example_026.php
|
// File name : example_026.php
|
||||||
// Begin : 2008-03-04
|
// Begin : 2008-03-04
|
||||||
// Last Update : 2009-09-30
|
// Last Update : 2010-04-03
|
||||||
//
|
//
|
||||||
// Description : Example 026 for TCPDF class
|
// Description : Example 026 for TCPDF class
|
||||||
// Text Clipping
|
// Text Rendering Modes and Text Clipping
|
||||||
//
|
//
|
||||||
// Author: Nicola Asuni
|
// Author: Nicola Asuni
|
||||||
//
|
//
|
||||||
@ -22,7 +22,7 @@
|
|||||||
/**
|
/**
|
||||||
* Creates an example PDF TEST document using TCPDF
|
* Creates an example PDF TEST document using TCPDF
|
||||||
* @package com.tecnick.tcpdf
|
* @package com.tecnick.tcpdf
|
||||||
* @abstract TCPDF - Example: Text Clipping
|
* @abstract TCPDF - Example: Text Rendering Modes and Text Clipping
|
||||||
* @author Nicola Asuni
|
* @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
|
* @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.org
|
* @link http://tcpdf.org
|
||||||
@ -70,26 +70,74 @@ $pdf->setLanguageArray($l);
|
|||||||
// ---------------------------------------------------------
|
// ---------------------------------------------------------
|
||||||
|
|
||||||
// set font
|
// set font
|
||||||
$pdf->SetFont('helvetica', 'BI', 50);
|
$pdf->SetFont('helvetica', '', 22);
|
||||||
|
|
||||||
// add a page
|
// add a page
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
|
|
||||||
// print clipping text
|
// set color for text stroke
|
||||||
$pdf->Text(20, 40, 'STROKE TEXT', 1, false);
|
$pdf->SetDrawColor(255,0,0);
|
||||||
|
|
||||||
|
|
||||||
|
$pdf->setTextRenderingMode($stroke=0, $fill=true, $clip=false);
|
||||||
|
$pdf->Write(0, 'Fill text', '', 0, '', true, 0, false, false, 0);
|
||||||
|
|
||||||
|
$pdf->setTextRenderingMode($stroke=0.2, $fill=false, $clip=false);
|
||||||
|
$pdf->Write(0, 'Stroke text', '', 0, '', true, 0, false, false, 0);
|
||||||
|
|
||||||
|
$pdf->setTextRenderingMode($stroke=0.2, $fill=true, $clip=false);
|
||||||
|
$pdf->Write(0, 'Fill, then stroke text', '', 0, '', true, 0, false, false, 0);
|
||||||
|
|
||||||
|
$pdf->setTextRenderingMode($stroke=0, $fill=false, $clip=false);
|
||||||
|
$pdf->Write(0, 'Neither fill nor stroke text (invisible)', '', 0, '', true, 0, false, false, 0);
|
||||||
|
|
||||||
|
|
||||||
|
// * * * CLIPPING MODES * * * * * * * * * * * * * * * * * *
|
||||||
|
|
||||||
//Start Transformation
|
|
||||||
$pdf->StartTransform();
|
$pdf->StartTransform();
|
||||||
|
$pdf->setTextRenderingMode($stroke=0, $fill=true, $clip=true);
|
||||||
// print clipping text
|
$pdf->Write(0, 'Fill text and add to path for clipping', '', 0, '', true, 0, false, false, 0);
|
||||||
$pdf->Text(20, 70, 'CLIPPING TEXT', 2, true);
|
$pdf->Image('../images/image_demo.jpg', 15, 65, 170, 10, '', '', '', true, 72);
|
||||||
|
|
||||||
// draw jpeg image
|
|
||||||
$pdf->Image('../images/image_demo.jpg', 20, 45, 170, 40, '', 'http://www.tcpdf.org', '', true, 72);
|
|
||||||
|
|
||||||
//Stop Transformation
|
|
||||||
$pdf->StopTransform();
|
$pdf->StopTransform();
|
||||||
|
|
||||||
|
$pdf->StartTransform();
|
||||||
|
$pdf->setTextRenderingMode($stroke=0.3, $fill=false, $clip=true);
|
||||||
|
$pdf->Write(0, 'Stroke text and add to path for clipping', '', 0, '', true, 0, false, false, 0);
|
||||||
|
$pdf->Image('../images/image_demo.jpg', 15, 75, 170, 10, '', '', '', true, 72);
|
||||||
|
$pdf->StopTransform();
|
||||||
|
|
||||||
|
$pdf->StartTransform();
|
||||||
|
$pdf->setTextRenderingMode($stroke=0.3, $fill=true, $clip=true);
|
||||||
|
$pdf->Write(0, 'Fill, then stroke text and add to path for clipping', '', 0, '', true, 0, false, false, 0);
|
||||||
|
$pdf->Image('../images/image_demo.jpg', 15, 85, 170, 10, '', '', '', true, 72);
|
||||||
|
$pdf->StopTransform();
|
||||||
|
|
||||||
|
$pdf->StartTransform();
|
||||||
|
$pdf->setTextRenderingMode($stroke=0, $fill=false, $clip=true);
|
||||||
|
$pdf->Write(0, 'Add text to path for clipping', '', 0, '', true, 0, false, false, 0);
|
||||||
|
$pdf->Image('../images/image_demo.jpg', 15, 95, 170, 10, '', '', '', true, 72);
|
||||||
|
$pdf->StopTransform();
|
||||||
|
|
||||||
|
// reset text rendering mode
|
||||||
|
$pdf->setTextRenderingMode($stroke=0, $fill=true, $clip=false);
|
||||||
|
|
||||||
|
// * * * HTML MODE * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
|
||||||
|
// The following attributes were added to HTML:
|
||||||
|
// stroke : stroke width
|
||||||
|
// strokecolor : stroke color
|
||||||
|
// fill : true (default) to fill the font, false otherwise
|
||||||
|
|
||||||
|
|
||||||
|
// create some HTML content with text rendering modes
|
||||||
|
$html = '<span stroke="0" fill="true">HTML Fill text</span><br />';
|
||||||
|
$html .= '<span stroke="0.2" fill="false">HTML Stroke text</span><br />';
|
||||||
|
$html .= '<span stroke="0.2" fill="true" strokecolor="#FF0000" color="#FFFF00">HTML Fill, then stroke text</span><br />';
|
||||||
|
$html .= '<span stroke="0" fill="false">HTML Neither fill nor stroke text (invisible)</span><br />';
|
||||||
|
|
||||||
|
// output the HTML content
|
||||||
|
$pdf->writeHTML($html, true, 0, true, 0);
|
||||||
|
|
||||||
// ---------------------------------------------------------
|
// ---------------------------------------------------------
|
||||||
|
|
||||||
//Close and output PDF document
|
//Close and output PDF document
|
||||||
|
@ -44,7 +44,7 @@ echo '<'.'?'.'xml version="1.0" encoding="UTF-8"'.'?'.'>';
|
|||||||
<li>Page Groups: [<a href="example_023.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
<li>Page Groups: [<a href="example_023.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
||||||
<li>Object Visibility: [<a href="example_024.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
<li>Object Visibility: [<a href="example_024.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
||||||
<li>Object Transparency: [<a href="example_025.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
<li>Object Transparency: [<a href="example_025.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
||||||
<li>Text Clipping: [<a href="example_026.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
<li>Text Rendering Modes and Text Clipping: [<a href="example_026.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
||||||
<li>Barcodes: [<a href="example_027.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
<li>Barcodes: [<a href="example_027.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
||||||
<li>Multiple page formats: [<a href="example_028.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
<li>Multiple page formats: [<a href="example_028.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
||||||
<li>Set PDF viewer display preferences: [<a href="example_029.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
<li>Set PDF viewer display preferences: [<a href="example_029.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
|
||||||
|
217
tcpdf.php
217
tcpdf.php
@ -4,7 +4,7 @@
|
|||||||
// Begin : 2002-08-03
|
// Begin : 2002-08-03
|
||||||
// Last Update : 2010-04-03
|
// Last Update : 2010-04-03
|
||||||
// Author : Nicola Asuni - info@tecnick.com - http://www.tcpdf.org
|
// Author : Nicola Asuni - info@tecnick.com - http://www.tcpdf.org
|
||||||
// Version : 4.9.007
|
// Version : 4.9.008
|
||||||
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
|
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Copyright (C) 2002-2010 Nicola Asuni - Tecnick.com S.r.l.
|
// Copyright (C) 2002-2010 Nicola Asuni - Tecnick.com S.r.l.
|
||||||
@ -131,7 +131,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 4.9.007
|
* @version 4.9.008
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -155,14 +155,14 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
/**
|
/**
|
||||||
* define default PDF document producer
|
* define default PDF document producer
|
||||||
*/
|
*/
|
||||||
define('PDF_PRODUCER', 'TCPDF 4.9.007 (http://www.tcpdf.org)');
|
define('PDF_PRODUCER', 'TCPDF 4.9.008 (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 4.9.007
|
* @version 4.9.008
|
||||||
* @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
|
||||||
@ -693,7 +693,13 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
* @var HTML PARSER: indent amount for lists.
|
* @var HTML PARSER: indent amount for lists.
|
||||||
* @access protected
|
* @access protected
|
||||||
*/
|
*/
|
||||||
protected $listindent;
|
protected $listindent = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var HTML PARSER: current list indententation level.
|
||||||
|
* @access protected
|
||||||
|
*/
|
||||||
|
protected $listindentlevel = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var current background color
|
* @var current background color
|
||||||
@ -1524,6 +1530,28 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
*/
|
*/
|
||||||
protected $column_start_page = 0;
|
protected $column_start_page = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Text rendering mode: 0 = Fill text; 1 = Stroke text; 2 = Fill, then stroke text; 3 = Neither fill nor stroke text (invisible); 4 = Fill text and add to path for clipping; 5 = Stroke text and add to path for clipping; 6 = Fill, then stroke text and add to path for clipping; 7 = Add text to path for clipping.
|
||||||
|
* @access protected
|
||||||
|
* @since 4.9.008 (2010-04-03)
|
||||||
|
*/
|
||||||
|
protected $textrendermode = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Text stroke width in doc units
|
||||||
|
* @access protected
|
||||||
|
* @since 4.9.008 (2010-04-03)
|
||||||
|
*/
|
||||||
|
protected $textstrokewidth = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var current stroke color
|
||||||
|
* @access protected
|
||||||
|
* @since 4.9.008 (2010-04-03)
|
||||||
|
*/
|
||||||
|
protected $strokecolor;
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------------
|
//------------------------------------------------------------
|
||||||
// METHODS
|
// METHODS
|
||||||
//------------------------------------------------------------
|
//------------------------------------------------------------
|
||||||
@ -1628,6 +1656,7 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
$this->HREF = array();
|
$this->HREF = array();
|
||||||
$this->getFontsList();
|
$this->getFontsList();
|
||||||
$this->fgcolor = array('R' => 0, 'G' => 0, 'B' => 0);
|
$this->fgcolor = array('R' => 0, 'G' => 0, 'B' => 0);
|
||||||
|
$this->strokecolor = array('R' => 0, 'G' => 0, 'B' => 0);
|
||||||
$this->bgcolor = array('R' => 255, 'G' => 255, 'B' => 255);
|
$this->bgcolor = array('R' => 255, 'G' => 255, 'B' => 255);
|
||||||
$this->extgstates = array();
|
$this->extgstates = array();
|
||||||
// user's rights
|
// user's rights
|
||||||
@ -2834,8 +2863,6 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
$this->lMargin = $prev_lMargin;
|
$this->lMargin = $prev_lMargin;
|
||||||
$this->rMargin = $prev_rMargin;
|
$this->rMargin = $prev_rMargin;
|
||||||
}
|
}
|
||||||
// print table header (if any)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2918,12 +2945,15 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
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);
|
||||||
} 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);
|
||||||
} else {
|
} else {
|
||||||
// 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);
|
||||||
}
|
}
|
||||||
if ($this->page > 0) {
|
if ($this->page > 0) {
|
||||||
$this->_out($this->DrawColor);
|
$this->_out($this->DrawColor);
|
||||||
@ -3371,6 +3401,7 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
// register CID font (all styles at once)
|
// register CID font (all styles at once)
|
||||||
$styles = array('' => '', 'B' => ',Bold', 'I' => ',Italic', 'BI' => ',BoldItalic');
|
$styles = array('' => '', 'B' => ',Bold', 'I' => ',Italic', 'BI' => ',BoldItalic');
|
||||||
$sname = $name.$styles[$bistyle];
|
$sname = $name.$styles[$bistyle];
|
||||||
|
// artificial bold
|
||||||
if (strpos($bistyle, 'B') !== false) {
|
if (strpos($bistyle, 'B') !== false) {
|
||||||
if (isset($desc['StemV'])) {
|
if (isset($desc['StemV'])) {
|
||||||
$desc['StemV'] *= 2;
|
$desc['StemV'] *= 2;
|
||||||
@ -3378,6 +3409,7 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
$desc['StemV'] = 120;
|
$desc['StemV'] = 120;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// artificial italic
|
||||||
if (strpos($bistyle, 'I') !== false) {
|
if (strpos($bistyle, 'I') !== false) {
|
||||||
if (isset($desc['ItalicAngle'])) {
|
if (isset($desc['ItalicAngle'])) {
|
||||||
$desc['ItalicAngle'] -= 11;
|
$desc['ItalicAngle'] -= 11;
|
||||||
@ -3687,48 +3719,28 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prints a character string.
|
* DEPRECATED! Prints a character string.
|
||||||
* The origin is on the left of the first charcter, on the baseline.
|
* The origin is on the left of the first charcter, on the baseline.
|
||||||
* This method allows to place a string precisely on the page.
|
* This method allows to place a string precisely on the page.
|
||||||
* @param float $x Abscissa of the origin
|
* @param float $x Abscissa of the origin
|
||||||
* @param float $y Ordinate of the origin
|
* @param float $y Ordinate of the origin
|
||||||
* @param string $txt String to print
|
* @param string $txt String to print
|
||||||
* @param int $stroke outline size in points (0 = disable)
|
* @param int $stroke outline size in user units (false = disable)
|
||||||
* @param boolean $clip if true activate clipping mode (you must call StartTransform() before this function and StopTransform() to stop the clipping tranformation).
|
* @param boolean $clip if true activate clipping mode (you must call StartTransform() before this function and StopTransform() to stop the clipping tranformation).
|
||||||
|
* @param boolean $fill if true fills the text
|
||||||
* @access public
|
* @access public
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
* @deprecated deprecated since version 4.3.005 (2008-11-25)
|
* @deprecated deprecated since version 4.3.005 (2008-11-25)
|
||||||
* @see Cell(), Write(), MultiCell(), WriteHTML(), WriteHTMLCell()
|
* @see Cell(), Write(), MultiCell(), WriteHTML(), WriteHTMLCell()
|
||||||
*/
|
*/
|
||||||
public function Text($x, $y, $txt, $stroke=0, $clip=false) {
|
public function Text($x, $y, $txt, $stroke=false, $clip=false, $fill=true) {
|
||||||
//Output a string
|
$textrendermode = $this->textrendermode;
|
||||||
if ($this->rtl) {
|
$textstrokewidth = $this->textstrokewidth;
|
||||||
// bidirectional algorithm (some chars may be changed affecting the line length)
|
$this->setTextRenderingMode($fill, $stroke, $clip);
|
||||||
$s = $this->utf8Bidi($this->UTF8StringToArray($txt), $txt, $this->tmprtl);
|
$this->Write(0, $txt, '', 0, '', false, 0, false, false, 0);
|
||||||
$l = $this->GetArrStringWidth($s);
|
// restore previous rendering mode
|
||||||
$xr = $this->w - $x - $l;
|
$this->textrendermode = $textrendermode;
|
||||||
} else {
|
$this->textstrokewidth = $textstrokewidth;
|
||||||
$xr = $x;
|
|
||||||
}
|
|
||||||
$opt = '';
|
|
||||||
if (($stroke > 0) AND (!$clip)) {
|
|
||||||
$opt .= '1 Tr '.intval($stroke).' w ';
|
|
||||||
} elseif (($stroke > 0) AND $clip) {
|
|
||||||
$opt .= '5 Tr '.intval($stroke).' w ';
|
|
||||||
} elseif ($clip) {
|
|
||||||
$opt .= '7 Tr ';
|
|
||||||
}
|
|
||||||
$s = sprintf('BT %.2F %.2F Td %s(%s) Tj ET 0 Tr', $xr * $this->k, ($this->h-$y) * $this->k, $opt, $this->_escapetext($txt));
|
|
||||||
if ($this->underline AND ($txt!='')) {
|
|
||||||
$s .= ' '.$this->_dounderline($xr, $y, $txt);
|
|
||||||
}
|
|
||||||
if ($this->linethrough AND ($txt!='')) {
|
|
||||||
$s .= ' '.$this->_dolinethrough($xr, $y, $txt);
|
|
||||||
}
|
|
||||||
if ($this->ColorFlag AND (!$clip)) {
|
|
||||||
$s='q '.$this->TextColor.' '.$s.' Q';
|
|
||||||
}
|
|
||||||
$this->_out($s);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -4013,6 +4025,8 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
if ($this->ColorFlag) {
|
if ($this->ColorFlag) {
|
||||||
$s .= 'q '.$this->TextColor.' ';
|
$s .= 'q '.$this->TextColor.' ';
|
||||||
}
|
}
|
||||||
|
// rendering mode
|
||||||
|
$s .= sprintf('BT %d Tr %.2F w ET ', $this->textrendermode, $this->textstrokewidth);
|
||||||
// count number of spaces
|
// count number of spaces
|
||||||
$ns = substr_count($txt, ' ');
|
$ns = substr_count($txt, ' ');
|
||||||
// Justification
|
// Justification
|
||||||
@ -13319,9 +13333,13 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
$dom[$key]['fontname'] = $this->FontFamily;
|
$dom[$key]['fontname'] = $this->FontFamily;
|
||||||
$dom[$key]['fontstyle'] = $this->FontStyle;
|
$dom[$key]['fontstyle'] = $this->FontStyle;
|
||||||
$dom[$key]['fontsize'] = $this->FontSizePt;
|
$dom[$key]['fontsize'] = $this->FontSizePt;
|
||||||
|
$dom[$key]['stroke'] = $this->textstrokewidth;
|
||||||
|
$dom[$key]['fill'] = (($this->textrendermode % 2) == 0);
|
||||||
|
$dom[$key]['clip'] = ($this->textrendermode > 3);
|
||||||
$dom[$key]['line-height'] = $this->cell_height_ratio;
|
$dom[$key]['line-height'] = $this->cell_height_ratio;
|
||||||
$dom[$key]['bgcolor'] = false;
|
$dom[$key]['bgcolor'] = false;
|
||||||
$dom[$key]['fgcolor'] = $this->fgcolor;
|
$dom[$key]['fgcolor'] = $this->fgcolor;
|
||||||
|
$dom[$key]['strokecolor'] = $this->strokecolor;
|
||||||
$dom[$key]['align'] = '';
|
$dom[$key]['align'] = '';
|
||||||
$dom[$key]['listtype'] = '';
|
$dom[$key]['listtype'] = '';
|
||||||
$dom[$key]['text-indent'] = 0;
|
$dom[$key]['text-indent'] = 0;
|
||||||
@ -13364,9 +13382,13 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
$dom[$key]['fontname'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['fontname'];
|
$dom[$key]['fontname'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['fontname'];
|
||||||
$dom[$key]['fontstyle'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['fontstyle'];
|
$dom[$key]['fontstyle'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['fontstyle'];
|
||||||
$dom[$key]['fontsize'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['fontsize'];
|
$dom[$key]['fontsize'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['fontsize'];
|
||||||
|
$dom[$key]['stroke'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['stroke'];
|
||||||
|
$dom[$key]['fill'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['fill'];
|
||||||
|
$dom[$key]['clip'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['clip'];
|
||||||
$dom[$key]['line-height'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['line-height'];
|
$dom[$key]['line-height'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['line-height'];
|
||||||
$dom[$key]['bgcolor'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['bgcolor'];
|
$dom[$key]['bgcolor'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['bgcolor'];
|
||||||
$dom[$key]['fgcolor'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['fgcolor'];
|
$dom[$key]['fgcolor'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['fgcolor'];
|
||||||
|
$dom[$key]['strokecolor'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['strokecolor'];
|
||||||
$dom[$key]['align'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['align'];
|
$dom[$key]['align'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['align'];
|
||||||
if (isset($dom[($dom[($dom[$key]['parent'])]['parent'])]['listtype'])) {
|
if (isset($dom[($dom[($dom[$key]['parent'])]['parent'])]['listtype'])) {
|
||||||
$dom[$key]['listtype'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['listtype'];
|
$dom[$key]['listtype'] = $dom[($dom[($dom[$key]['parent'])]['parent'])]['listtype'];
|
||||||
@ -13424,9 +13446,13 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
$dom[$key]['fontname'] = $dom[$parentkey]['fontname'];
|
$dom[$key]['fontname'] = $dom[$parentkey]['fontname'];
|
||||||
$dom[$key]['fontstyle'] = $dom[$parentkey]['fontstyle'];
|
$dom[$key]['fontstyle'] = $dom[$parentkey]['fontstyle'];
|
||||||
$dom[$key]['fontsize'] = $dom[$parentkey]['fontsize'];
|
$dom[$key]['fontsize'] = $dom[$parentkey]['fontsize'];
|
||||||
|
$dom[$key]['stroke'] = $dom[$parentkey]['stroke'];
|
||||||
|
$dom[$key]['fill'] = $dom[$parentkey]['fill'];
|
||||||
|
$dom[$key]['clip'] = $dom[$parentkey]['clip'];
|
||||||
$dom[$key]['line-height'] = $dom[$parentkey]['line-height'];
|
$dom[$key]['line-height'] = $dom[$parentkey]['line-height'];
|
||||||
$dom[$key]['bgcolor'] = $dom[$parentkey]['bgcolor'];
|
$dom[$key]['bgcolor'] = $dom[$parentkey]['bgcolor'];
|
||||||
$dom[$key]['fgcolor'] = $dom[$parentkey]['fgcolor'];
|
$dom[$key]['fgcolor'] = $dom[$parentkey]['fgcolor'];
|
||||||
|
$dom[$key]['strokecolor'] = $dom[$parentkey]['strokecolor'];
|
||||||
$dom[$key]['align'] = $dom[$parentkey]['align'];
|
$dom[$key]['align'] = $dom[$parentkey]['align'];
|
||||||
$dom[$key]['listtype'] = $dom[$parentkey]['listtype'];
|
$dom[$key]['listtype'] = $dom[$parentkey]['listtype'];
|
||||||
$dom[$key]['text-indent'] = $dom[$parentkey]['text-indent'];
|
$dom[$key]['text-indent'] = $dom[$parentkey]['text-indent'];
|
||||||
@ -13702,6 +13728,10 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
if (isset($dom[$key]['attribute']['bgcolor']) AND (!$this->empty_string($dom[$key]['attribute']['bgcolor']))) {
|
if (isset($dom[$key]['attribute']['bgcolor']) AND (!$this->empty_string($dom[$key]['attribute']['bgcolor']))) {
|
||||||
$dom[$key]['bgcolor'] = $this->convertHTMLColorToDec($dom[$key]['attribute']['bgcolor']);
|
$dom[$key]['bgcolor'] = $this->convertHTMLColorToDec($dom[$key]['attribute']['bgcolor']);
|
||||||
}
|
}
|
||||||
|
// set stroke color attribute
|
||||||
|
if (isset($dom[$key]['attribute']['strokecolor']) AND (!$this->empty_string($dom[$key]['attribute']['strokecolor']))) {
|
||||||
|
$dom[$key]['strokecolor'] = $this->convertHTMLColorToDec($dom[$key]['attribute']['strokecolor']);
|
||||||
|
}
|
||||||
// check for width attribute
|
// check for width attribute
|
||||||
if (isset($dom[$key]['attribute']['width'])) {
|
if (isset($dom[$key]['attribute']['width'])) {
|
||||||
$dom[$key]['width'] = $dom[$key]['attribute']['width'];
|
$dom[$key]['width'] = $dom[$key]['attribute']['width'];
|
||||||
@ -13714,6 +13744,27 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
if (isset($dom[$key]['attribute']['align']) AND (!$this->empty_string($dom[$key]['attribute']['align'])) AND ($dom[$key]['value'] !== 'img')) {
|
if (isset($dom[$key]['attribute']['align']) AND (!$this->empty_string($dom[$key]['attribute']['align'])) AND ($dom[$key]['value'] !== 'img')) {
|
||||||
$dom[$key]['align'] = strtoupper($dom[$key]['attribute']['align']{0});
|
$dom[$key]['align'] = strtoupper($dom[$key]['attribute']['align']{0});
|
||||||
}
|
}
|
||||||
|
// check for text rendering mode (the following attributes do not exist in HTML)
|
||||||
|
if (isset($dom[$key]['attribute']['stroke'])) {
|
||||||
|
// font stroke width
|
||||||
|
$dom[$key]['stroke'] = $this->getHTMLUnitToUnits($dom[$key]['attribute']['stroke'], $dom[$key]['fontsize'], 'pt', true);
|
||||||
|
}
|
||||||
|
if (isset($dom[$key]['attribute']['fill'])) {
|
||||||
|
// font fill
|
||||||
|
if ($dom[$key]['attribute']['fill'] == 'true') {
|
||||||
|
$dom[$key]['fill'] = true;
|
||||||
|
} else {
|
||||||
|
$dom[$key]['fill'] = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (isset($dom[$key]['attribute']['clip'])) {
|
||||||
|
// clipping mode
|
||||||
|
if ($dom[$key]['attribute']['clip'] == 'true') {
|
||||||
|
$dom[$key]['clip'] = true;
|
||||||
|
} else {
|
||||||
|
$dom[$key]['clip'] = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
} // end opening tag
|
} // end opening tag
|
||||||
} else {
|
} else {
|
||||||
// text
|
// text
|
||||||
@ -13815,6 +13866,7 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
} else {
|
} else {
|
||||||
$this->listindent = $this->GetStringWidth('0000');
|
$this->listindent = $this->GetStringWidth('0000');
|
||||||
}
|
}
|
||||||
|
$this->listindentlevel = 0;
|
||||||
// save previous states
|
// save previous states
|
||||||
$prev_cell_height_ratio = $this->cell_height_ratio;
|
$prev_cell_height_ratio = $this->cell_height_ratio;
|
||||||
$prev_listnum = $this->listnum;
|
$prev_listnum = $this->listnum;
|
||||||
@ -14074,6 +14126,11 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
$curfontdescent = $fontdescent;
|
$curfontdescent = $fontdescent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// set text rendering mode
|
||||||
|
$textstroke = isset($dom[$key]['stroke']) ? $dom[$key]['stroke'] : $this->textstrokewidth;
|
||||||
|
$textfill = isset($dom[$key]['fill']) ? $dom[$key]['fill'] : (($this->textrendermode % 2) == 0);
|
||||||
|
$textclip = isset($dom[$key]['clip']) ? $dom[$key]['clip'] : ($this->textrendermode > 3);
|
||||||
|
$this->setTextRenderingMode($textstroke, $textfill, $textclip);
|
||||||
if (($plalign == 'J') AND $dom[$key]['block']) {
|
if (($plalign == 'J') AND $dom[$key]['block']) {
|
||||||
$plalign = '';
|
$plalign = '';
|
||||||
}
|
}
|
||||||
@ -14088,6 +14145,9 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
if (isset($dom[$key]['fgcolor']) AND ($dom[$key]['fgcolor'] !== false)) {
|
if (isset($dom[$key]['fgcolor']) AND ($dom[$key]['fgcolor'] !== false)) {
|
||||||
$this->SetTextColorArray($dom[$key]['fgcolor']);
|
$this->SetTextColorArray($dom[$key]['fgcolor']);
|
||||||
}
|
}
|
||||||
|
if (isset($dom[$key]['strokecolor']) AND ($dom[$key]['strokecolor'] !== false)) {
|
||||||
|
$this->SetDrawColorArray($dom[$key]['strokecolor']);
|
||||||
|
}
|
||||||
if (isset($dom[$key]['align'])) {
|
if (isset($dom[$key]['align'])) {
|
||||||
$lalign = $dom[$key]['align'];
|
$lalign = $dom[$key]['align'];
|
||||||
}
|
}
|
||||||
@ -14859,6 +14919,9 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
}
|
}
|
||||||
if ($ln AND (!($cell AND ($dom[$key-1]['value'] == 'table')))) {
|
if ($ln AND (!($cell AND ($dom[$key-1]['value'] == 'table')))) {
|
||||||
$this->Ln($this->lasth);
|
$this->Ln($this->lasth);
|
||||||
|
if ($this->y < $maxbottomliney) {
|
||||||
|
$this->y = $maxbottomliney;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// restore previous values
|
// restore previous values
|
||||||
$this->setGraphicVars($gvars);
|
$this->setGraphicVars($gvars);
|
||||||
@ -14872,9 +14935,6 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
$this->listordered = $prev_listordered;
|
$this->listordered = $prev_listordered;
|
||||||
$this->listcount = $prev_listcount;
|
$this->listcount = $prev_listcount;
|
||||||
$this->lispacer = $prev_lispacer;
|
$this->lispacer = $prev_lispacer;
|
||||||
if ($this->y < $maxbottomliney) {
|
|
||||||
$this->y = $maxbottomliney;
|
|
||||||
}
|
|
||||||
unset($dom);
|
unset($dom);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -15112,6 +15172,7 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
} else {
|
} else {
|
||||||
$this->lMargin += $this->listindent;
|
$this->lMargin += $this->listindent;
|
||||||
}
|
}
|
||||||
|
++$this->listindentlevel;
|
||||||
$this->addHTMLVertSpace(1, $cell, '', $firstorlast, $tag['value'], false);
|
$this->addHTMLVertSpace(1, $cell, '', $firstorlast, $tag['value'], false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -15135,6 +15196,7 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
} else {
|
} else {
|
||||||
$this->lMargin += $this->listindent;
|
$this->lMargin += $this->listindent;
|
||||||
}
|
}
|
||||||
|
++$this->listindentlevel;
|
||||||
$this->addHTMLVertSpace(0, $cell, '', $firstorlast, $tag['value'], false);
|
$this->addHTMLVertSpace(0, $cell, '', $firstorlast, $tag['value'], false);
|
||||||
$this->htmlvspace = 0;
|
$this->htmlvspace = 0;
|
||||||
break;
|
break;
|
||||||
@ -15176,6 +15238,7 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
} else {
|
} else {
|
||||||
$this->lMargin += $this->listindent;
|
$this->lMargin += $this->listindent;
|
||||||
}
|
}
|
||||||
|
++$this->listindentlevel;
|
||||||
$this->addHTMLVertSpace(1, $cell, $hb, $firstorlast, $tag['value'], false);
|
$this->addHTMLVertSpace(1, $cell, $hb, $firstorlast, $tag['value'], false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -15738,6 +15801,7 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
} else {
|
} else {
|
||||||
$this->lMargin -= $this->listindent;
|
$this->lMargin -= $this->listindent;
|
||||||
}
|
}
|
||||||
|
--$this->listindentlevel;
|
||||||
$this->addHTMLVertSpace(1, $cell, $hb, $firstorlast, $tag['value'], true);
|
$this->addHTMLVertSpace(1, $cell, $hb, $firstorlast, $tag['value'], true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -15770,6 +15834,7 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
} else {
|
} else {
|
||||||
$this->lMargin -= $this->listindent;
|
$this->lMargin -= $this->listindent;
|
||||||
}
|
}
|
||||||
|
--$this->listindentlevel;
|
||||||
$this->addHTMLVertSpace(0, $cell, '', $firstorlast, $tag['value'], true);
|
$this->addHTMLVertSpace(0, $cell, '', $firstorlast, $tag['value'], true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -15782,6 +15847,7 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
} else {
|
} else {
|
||||||
$this->lMargin -= $this->listindent;
|
$this->lMargin -= $this->listindent;
|
||||||
}
|
}
|
||||||
|
--$this->listindentlevel;
|
||||||
if ($this->listnum <= 0) {
|
if ($this->listnum <= 0) {
|
||||||
$this->listnum = 0;
|
$this->listnum = 0;
|
||||||
$this->addHTMLVertSpace(1, $cell, $hb, $firstorlast, $tag['value'], true);
|
$this->addHTMLVertSpace(1, $cell, $hb, $firstorlast, $tag['value'], true);
|
||||||
@ -16287,6 +16353,8 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
'linestyleCap' => $this->linestyleCap,
|
'linestyleCap' => $this->linestyleCap,
|
||||||
'linestyleJoin' => $this->linestyleJoin,
|
'linestyleJoin' => $this->linestyleJoin,
|
||||||
'linestyleDash' => $this->linestyleDash,
|
'linestyleDash' => $this->linestyleDash,
|
||||||
|
'textrendermode' => $this->textrendermode,
|
||||||
|
'textstrokewidth' => $this->textstrokewidth,
|
||||||
'DrawColor' => $this->DrawColor,
|
'DrawColor' => $this->DrawColor,
|
||||||
'FillColor' => $this->FillColor,
|
'FillColor' => $this->FillColor,
|
||||||
'TextColor' => $this->TextColor,
|
'TextColor' => $this->TextColor,
|
||||||
@ -16317,6 +16385,8 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
$this->linestyleCap = $gvars['linestyleCap'];
|
$this->linestyleCap = $gvars['linestyleCap'];
|
||||||
$this->linestyleJoin = $gvars['linestyleJoin'];
|
$this->linestyleJoin = $gvars['linestyleJoin'];
|
||||||
$this->linestyleDash = $gvars['linestyleDash'];
|
$this->linestyleDash = $gvars['linestyleDash'];
|
||||||
|
$this->textrendermode = $gvars['textrendermode'];
|
||||||
|
$this->textstrokewidth = $gvars['textstrokewidth'];
|
||||||
$this->DrawColor = $gvars['DrawColor'];
|
$this->DrawColor = $gvars['DrawColor'];
|
||||||
$this->FillColor = $gvars['FillColor'];
|
$this->FillColor = $gvars['FillColor'];
|
||||||
$this->TextColor = $gvars['TextColor'];
|
$this->TextColor = $gvars['TextColor'];
|
||||||
@ -17166,17 +17236,19 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// set X position of the current column by case
|
// set X position of the current column by case
|
||||||
|
$listindent = ($this->listindentlevel * $this->listindent);
|
||||||
if ($this->rtl) {
|
if ($this->rtl) {
|
||||||
$x = $this->w - $this->original_rMargin - ($col * ($this->columns[$col]['w'] + $this->columns[$col]['s']));
|
$x = $this->w - $this->original_rMargin - ($col * ($this->columns[$col]['w'] + $this->columns[$col]['s']));
|
||||||
$this->SetRightMargin($this->w - $x);
|
$this->SetRightMargin($this->w - $x + $listindent);
|
||||||
$this->SetLeftMargin($x - $this->columns[$col]['w']);
|
$this->SetLeftMargin($x - $this->columns[$col]['w']);
|
||||||
|
$this->x = $x - $listindent;
|
||||||
} else {
|
} else {
|
||||||
$x = $this->original_lMargin + ($col * ($this->columns[$col]['w'] + $this->columns[$col]['s']));
|
$x = $this->original_lMargin + ($col * ($this->columns[$col]['w'] + $this->columns[$col]['s']));
|
||||||
$this->SetLeftMargin($x);
|
$this->SetLeftMargin($x + $listindent);
|
||||||
$this->SetRightMargin($this->w - $x - $this->columns[$col]['w']);
|
$this->SetRightMargin($this->w - $x - $this->columns[$col]['w']);
|
||||||
|
$this->x = $x + $listindent;
|
||||||
}
|
}
|
||||||
$this->columns[$col]['x'] = $x;
|
$this->columns[$col]['x'] = $x;
|
||||||
$this->x = $x;
|
|
||||||
}
|
}
|
||||||
$this->current_column = $col;
|
$this->current_column = $col;
|
||||||
// fix for HTML mode
|
// fix for HTML mode
|
||||||
@ -17199,6 +17271,63 @@ if (!class_exists('TCPDF', false)) {
|
|||||||
return urlencode(serialize($pararray));
|
return urlencode(serialize($pararray));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set Text rendering mode.
|
||||||
|
* @param int $stroke outline size in user units (0 = disable).
|
||||||
|
* @param boolean $fill if true fills the text (default).
|
||||||
|
* @param boolean $clip if true activate clipping mode
|
||||||
|
* @access public
|
||||||
|
* @since 4.9.008 (2009-04-02)
|
||||||
|
*/
|
||||||
|
public function setTextRenderingMode($stroke=0, $fill=true, $clip=false) {
|
||||||
|
// Ref.: PDF 32000-1:2008 - 9.3.6 Text Rendering Mode
|
||||||
|
// convert text rendering parameters
|
||||||
|
if ($stroke < 0) {
|
||||||
|
$stroke = 0;
|
||||||
|
}
|
||||||
|
if ($fill === true) {
|
||||||
|
if ($stroke > 0) {
|
||||||
|
if ($clip === true) {
|
||||||
|
// Fill, then stroke text and add to path for clipping
|
||||||
|
$textrendermode = 6;
|
||||||
|
} else {
|
||||||
|
// Fill, then stroke text
|
||||||
|
$textrendermode = 2;
|
||||||
|
}
|
||||||
|
$textstrokewidth = $stroke;
|
||||||
|
} else {
|
||||||
|
if ($clip === true) {
|
||||||
|
// Fill text and add to path for clipping
|
||||||
|
$textrendermode = 4;
|
||||||
|
} else {
|
||||||
|
// Fill text
|
||||||
|
$textrendermode = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if ($stroke > 0) {
|
||||||
|
if ($clip === true) {
|
||||||
|
// Stroke text and add to path for clipping
|
||||||
|
$textrendermode = 5;
|
||||||
|
} else {
|
||||||
|
// Stroke text
|
||||||
|
$textrendermode = 1;
|
||||||
|
}
|
||||||
|
$textstrokewidth = $stroke;
|
||||||
|
} else {
|
||||||
|
if ($clip === true) {
|
||||||
|
// Add text to path for clipping
|
||||||
|
$textrendermode = 7;
|
||||||
|
} else {
|
||||||
|
// Neither fill nor stroke text (invisible)
|
||||||
|
$textrendermode = 3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$this->textrendermode = $textrendermode;
|
||||||
|
$this->textstrokewidth = $stroke * $this->k;
|
||||||
|
}
|
||||||
|
|
||||||
} // END OF TCPDF CLASS
|
} // END OF TCPDF CLASS
|
||||||
}
|
}
|
||||||
//============================================================+
|
//============================================================+
|
||||||
|
Loading…
Reference in New Issue
Block a user