30
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-06-12 02:12:21 +00:00
This commit is contained in:
nicolaasuni 2010-05-06 12:39:42 +02:00
parent e7f6a0927d
commit 928832f05b
22 changed files with 859 additions and 427 deletions

View File

@ -1,3 +1,8 @@
5.0.001 (2010-05-06)
- Protected method _putstream was re-added for backward compatibility.
- The following method were added to display HTML Table Of Content (see example n. 59):
addTOCPage(), endTOCPage(), addHTMLTOC().
5.0.000 (2010-05-05)
- Method ImageSVG() was added to embedd SVG images (see example n. 58). Note that not all SVG images are supported.
- Method setRasterizeVectorImages() was added to enable/disable rasterization for vector images via ImageMagick library.

View File

@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
Version: 5.0.000
Release date: 2010-05-05
Version: 5.0.001
Release date: 2010-05-06
Author: Nicola Asuni
Copyright (c) 2001-2010:

View File

@ -55,7 +55,7 @@
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:12 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:33 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -5548,7 +5548,7 @@ $frame)</code>
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:13 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:34 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

File diff suppressed because it is too large Load Diff

View File

@ -296,7 +296,7 @@ $type)</code>
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:12 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:33 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -1374,7 +1374,7 @@ $type)</code>
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:12 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:34 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -102,7 +102,7 @@ PHP class to creates array representations for 2D barcodes to be used with TCPDF
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:12 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:33 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -102,7 +102,7 @@ PHP class to creates array representations for common 1D barcodes to be used wit
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:12 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:34 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -539,7 +539,7 @@ Configuration file for TCPDF.<br /><br /><br /><br />
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:17 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:37 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -94,7 +94,7 @@ Array of WEB safe colors.<br /><br /><br /><br />
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:13 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:34 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -477,7 +477,7 @@ string $string, [int $split_length = 1])</code>
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:13 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:34 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -79,7 +79,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>
</tr>
<tr>
<td><b>version:</b>&nbsp;&nbsp;</td><td>5.0.000</td>
<td><b>version:</b>&nbsp;&nbsp;</td><td>5.0.001</td>
</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>
@ -110,7 +110,7 @@ unicode data<br /><br /></div>
<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.0.000 (http://www.tcpdf.org)'</code>
<code>PDF_PRODUCER = 'TCPDF 5.0.001 (http://www.tcpdf.org)'</code>
</td></tr></table>
</td></tr></table>
@ -121,7 +121,7 @@ unicode data<br /><br /></div>
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:14 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:35 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -243,7 +243,7 @@ Unicode Include file for TCPDF.<br /><br /><br /><br />
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:17 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:37 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -105,6 +105,8 @@
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodAddFont">TCPDF::AddFont()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Imports a TrueType, Type1, core, or CID0 font and makes it available.</dd>
<dt><b>addHtmlLink</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodaddHtmlLink">TCPDF::addHtmlLink()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Output anchor link.</dd>
<dt><b>addHTMLTOC</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodaddHTMLTOC">TCPDF::addHTMLTOC()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Output a Table Of Content Index (TOC) using HTML templates.</dd>
<dt><b>addHTMLVertSpace</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodaddHTMLVertSpace">TCPDF::addHTMLVertSpace()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Add vertical spaces if needed.</dd>
<dt><b>addJavascriptObject</b></dt>
@ -117,6 +119,8 @@
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodAddSpotColor">TCPDF::AddSpotColor()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Defines a new spot color.</dd>
<dt><b>addTOC</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodaddTOC">TCPDF::addTOC()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Output a Table of Content Index (TOC).</dd>
<dt><b>addTOCPage</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodaddTOCPage">TCPDF::addTOCPage()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Adds a new TOC (Table Of Content) page to the document.</dd>
<dt><b>AliasNbPages</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodAliasNbPages">TCPDF::AliasNbPages()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Defines an alias for the total number of pages.</dd>
<dt><b>AliasNumPage</b></dt>
@ -427,6 +431,8 @@
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodendPage">TCPDF::endPage()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Terminate the current page</dd>
<dt><b>endSVGElementHandler</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodendSVGElementHandler">TCPDF::endSVGElementHandler()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Sets the closing SVG element handler function for the XML parser.</dd>
<dt><b>endTOCPage</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodendTOCPage">TCPDF::endTOCPage()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Terminate the current TOC (Table Of Content) page</dd>
<dt><b>Error</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodError">TCPDF::Error()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This method is automatically called in case of fatal error; it simply outputs the message and halts the execution. An inherited class may override it to customize the error handling but should always halt the script, or the resulting document would probably be invalid.</dd>
<dt><b>estimateBitsMode8</b></dt>
@ -1615,6 +1621,8 @@
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tMargin">TCPDF::$tMargin</a></dd>
<dt><b>$tmprtl</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tmprtl">TCPDF::$tmprtl</a></dd>
<dt><b>$tocpage</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tocpage">TCPDF::$tocpage</a></dd>
<dt><b>$transfmatrix</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$transfmatrix">TCPDF::$transfmatrix</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Array of transformation matrix</dd>
<dt><b>$transfmatrix_key</b></dt>
@ -1897,6 +1905,8 @@
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method_putsignature">TCPDF::_putsignature()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Add certification signature (DocMDP or UR3)</dd>
<dt><b>_putspotcolors</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method_putspotcolors">TCPDF::_putspotcolors()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Output Spot Colors Resources.</dd>
<dt><b>_putstream</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method_putstream">TCPDF::_putstream()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Output a stream.</dd>
<dt><b>_puttrailer</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method_puttrailer">TCPDF::_puttrailer()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Output trailer.</dd>
<dt><b>_puttruetypeunicode</b></dt>
@ -1918,13 +1928,13 @@
<dt><b>_Uvalue</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method_Uvalue">TCPDF::_Uvalue()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Compute U value (used for RC4 encryption)</dd>
<dt><b>__construct</b></dt>
<dd>in file qrcode.php, method <a href="com-tecnick-tcpdf/QRcode.html#method__construct">QRcode::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This is the class constructor.</dd>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method__construct">TCPDF::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This is the class constructor.</dd>
<dt><b>__construct</b></dt>
<dd>in file barcodes.php, method <a href="com-tecnick-tcpdf/TCPDFBarcode.html#method__construct">TCPDFBarcode::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This is the class constructor.</dd>
<dt><b>__construct</b></dt>
<dd>in file 2dbarcodes.php, method <a href="com-tecnick-tcpdf/TCPDF2DBarcode.html#method__construct">TCPDF2DBarcode::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This is the class constructor.</dd>
<dt><b>__construct</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method__construct">TCPDF::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This is the class constructor.</dd>
<dd>in file qrcode.php, method <a href="com-tecnick-tcpdf/QRcode.html#method__construct">QRcode::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This is the class constructor.</dd>
<dt><b>__destruct</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method__destruct">TCPDF::__destruct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Default destructor.</dd>
</dl>
@ -1932,7 +1942,7 @@
<a href="elementindex.html#top">top</a><br>
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:12 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:33 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -210,6 +210,8 @@
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method_putsignature">TCPDF::_putsignature()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Add certification signature (DocMDP or UR3)</dd>
<dt><b>_putspotcolors</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method_putspotcolors">TCPDF::_putspotcolors()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Output Spot Colors Resources.</dd>
<dt><b>_putstream</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method_putstream">TCPDF::_putstream()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Output a stream.</dd>
<dt><b>_puttrailer</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method_puttrailer">TCPDF::_puttrailer()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Output trailer.</dd>
<dt><b>_puttruetypeunicode</b></dt>
@ -231,13 +233,13 @@
<dt><b>_Uvalue</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method_Uvalue">TCPDF::_Uvalue()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Compute U value (used for RC4 encryption)</dd>
<dt><b>__construct</b></dt>
<dd>in file qrcode.php, method <a href="com-tecnick-tcpdf/QRcode.html#method__construct">QRcode::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This is the class constructor.</dd>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method__construct">TCPDF::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This is the class constructor.</dd>
<dt><b>__construct</b></dt>
<dd>in file barcodes.php, method <a href="com-tecnick-tcpdf/TCPDFBarcode.html#method__construct">TCPDFBarcode::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This is the class constructor.</dd>
<dt><b>__construct</b></dt>
<dd>in file 2dbarcodes.php, method <a href="com-tecnick-tcpdf/TCPDF2DBarcode.html#method__construct">TCPDF2DBarcode::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This is the class constructor.</dd>
<dt><b>__construct</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method__construct">TCPDF::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This is the class constructor.</dd>
<dd>in file qrcode.php, method <a href="com-tecnick-tcpdf/QRcode.html#method__construct">QRcode::__construct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This is the class constructor.</dd>
<dt><b>__destruct</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#method__destruct">TCPDF::__destruct()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Default destructor.</dd>
</dl>
@ -278,6 +280,8 @@
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodAddFont">TCPDF::AddFont()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Imports a TrueType, Type1, core, or CID0 font and makes it available.</dd>
<dt><b>addHtmlLink</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodaddHtmlLink">TCPDF::addHtmlLink()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Output anchor link.</dd>
<dt><b>addHTMLTOC</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodaddHTMLTOC">TCPDF::addHTMLTOC()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Output a Table Of Content Index (TOC) using HTML templates.</dd>
<dt><b>addHTMLVertSpace</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodaddHTMLVertSpace">TCPDF::addHTMLVertSpace()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Add vertical spaces if needed.</dd>
<dt><b>addJavascriptObject</b></dt>
@ -290,6 +294,8 @@
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodAddSpotColor">TCPDF::AddSpotColor()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Defines a new spot color.</dd>
<dt><b>addTOC</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodaddTOC">TCPDF::addTOC()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Output a Table of Content Index (TOC).</dd>
<dt><b>addTOCPage</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodaddTOCPage">TCPDF::addTOCPage()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Adds a new TOC (Table Of Content) page to the document.</dd>
<dt><b>AliasNbPages</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodAliasNbPages">TCPDF::AliasNbPages()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Defines an alias for the total number of pages.</dd>
<dt><b>AliasNumPage</b></dt>
@ -600,6 +606,8 @@
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodendPage">TCPDF::endPage()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Terminate the current page</dd>
<dt><b>endSVGElementHandler</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodendSVGElementHandler">TCPDF::endSVGElementHandler()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Sets the closing SVG element handler function for the XML parser.</dd>
<dt><b>endTOCPage</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodendTOCPage">TCPDF::endTOCPage()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Terminate the current TOC (Table Of Content) page</dd>
<dt><b>Error</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodError">TCPDF::Error()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;This method is automatically called in case of fatal error; it simply outputs the message and halts the execution. An inherited class may override it to customize the error handling but should always halt the script, or the resulting document would probably be invalid.</dd>
<dt><b>estimateBitsMode8</b></dt>
@ -1788,6 +1796,8 @@
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tMargin">TCPDF::$tMargin</a></dd>
<dt><b>$tmprtl</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tmprtl">TCPDF::$tmprtl</a></dd>
<dt><b>$tocpage</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$tocpage">TCPDF::$tocpage</a></dd>
<dt><b>$transfmatrix</b></dt>
<dd>in file tcpdf.php, variable <a href="com-tecnick-tcpdf/TCPDF.html#var$transfmatrix">TCPDF::$transfmatrix</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Array of transformation matrix</dd>
<dt><b>$transfmatrix_key</b></dt>
@ -1961,7 +1971,7 @@
<a href="elementindex_com-tecnick-tcpdf.html#top">top</a><br>
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:12 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:33 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -33,13 +33,18 @@
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<a href="#Post-parsing">Post-parsing</a><br>
<a href="#tcpdf.php">tcpdf.php</a><br>
<a name="tcpdf.php"></a>
<h1>tcpdf.php</h1>
<h2>Warnings:</h2><br>
<b>Warning on line 17697</b> - Unknown tag "@parma" used<br>
<a name="2dbarcodes.php"></a>
<h1>2dbarcodes.php</h1>
<h2>Errors:</h2><br>
<b>Error on line 79</b> - Text cannot be outside of li tag in a DocBlock list, parsing will be incorrect<br>
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:17 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:37 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -64,7 +64,7 @@
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br />
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:12 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:33 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -64,7 +64,7 @@
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.3</a><br />
<div class="credit">
<hr />
Documentation generated on Wed, 05 May 2010 11:56:12 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Thu, 06 May 2010 12:39:33 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -2,7 +2,7 @@
//============================================================+
// File name : example_045.php
// Begin : 2008-03-04
// Last Update : 2010-01-27
// Last Update : 2010-05-06
//
// Description : Example 045 for TCPDF class
// Bookmarks and Table of Content
@ -106,7 +106,7 @@ for ($i = 2; $i < 12; $i++) {
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
// add a new page for TOC
$pdf->AddPage();
$pdf->addTOCPage();
// write the TOC title
$pdf->SetFont('times', 'B', 16);
@ -118,7 +118,8 @@ $pdf->SetFont('dejavusans', '', 12);
// add table of content at page 1
$pdf->addTOC(1, 'courier', '.', 'INDEX');
// IMPORTANT: After calling this method you have to call addPage() to add other content.
// end of TOC page
$pdf->endTOCPage();
// ---------------------------------------------------------

View File

@ -77,6 +77,7 @@ echo '<'.'?'.'xml version="1.0" encoding="UTF-8"'.'?'.'>';
<li>Crop Marks and Registration Marks: [<a href="example_056.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
<li>Cell vertical alignments: [<a href="example_057.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
<li>SVG Image: [<a href="example_058.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
<li>Table Of Content with HTML templates: [<a href="example_059.php" title="PDF [new window]" target="_blank">PDF</a>]</li>
</ol>
</body>

186
tcpdf.php
View File

@ -2,9 +2,9 @@
//============================================================+
// File name : tcpdf.php
// Begin : 2002-08-03
// Last Update : 2010-05-05
// Last Update : 2010-05-06
// Author : Nicola Asuni - info@tecnick.com - http://www.tcpdf.org
// Version : 5.0.000
// Version : 5.0.001
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
// ----------------------------------------------------------------------------
// Copyright (C) 2002-2010 Nicola Asuni - Tecnick.com S.r.l.
@ -122,7 +122,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
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
* @version 5.0.000
* @version 5.0.001
*/
/**
@ -146,14 +146,14 @@ if (!class_exists('TCPDF', false)) {
/**
* define default PDF document producer
*/
define('PDF_PRODUCER', 'TCPDF 5.0.000 (http://www.tcpdf.org)');
define('PDF_PRODUCER', 'TCPDF 5.0.001 (http://www.tcpdf.org)');
/**
* 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>
* @name TCPDF
* @package com.tecnick.tcpdf
* @version 5.0.000
* @version 5.0.001
* @author Nicola Asuni - info@tecnick.com
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
@ -1552,6 +1552,12 @@ if (!class_exists('TCPDF', false)) {
*/
protected $pdfunit = 'mm';
/**
* @var true when we are on TOC (Table Of Content) page
* @access protected
*/
protected $tocpage = false;
/**
* @var If true convert vector images (SVG, EPS) to raster image using GD or ImageMagick library.
* @access protected
@ -2615,17 +2621,40 @@ if (!class_exists('TCPDF', false)) {
return $this->numpages;
}
/**
* Adds a new TOC (Table Of Content) page to the document.
* @param string $orientation page orientation.
* @param boolean $keepmargins if true overwrites the default page margins with the current margins
* @access public
* @since 5.0.001 (2010-05-06)
* @see AddPage(), startPage(), endPage(), endTOCPage()
*/
public function addTOCPage($orientation='', $format='', $keepmargins=false) {
$this->AddPage($orientation, $format, $keepmargins, true);
}
/**
* Terminate the current TOC (Table Of Content) page
* @access public
* @since 5.0.001 (2010-05-06)
* @see AddPage(), startPage(), endPage(), addTOCPage()
*/
public function endTOCPage() {
$this->endPage(true);
}
/**
* Adds a new page to the document. If a page is already present, the Footer() method is called first to output the footer (if enabled). Then the page is added, the current position set to the top-left corner according to the left and top margins (or top-right if in RTL mode), and Header() is called to display the header (if enabled).
* The origin of the coordinate system is at the top-left corner (or top-right for RTL) and increasing ordinates go downwards.
* @param string $orientation page orientation. Possible values are (case insensitive):<ul><li>P or PORTRAIT (default)</li><li>L or LANDSCAPE</li></ul>
* @param mixed $format The format used for pages. It can be either one of the following values (case insensitive) or a custom format in the form of a two-element array containing the width and the height (expressed in the unit given by unit).<ul><li>4A0</li><li>2A0</li><li>A0</li><li>A1</li><li>A2</li><li>A3</li><li>A4 (default)</li><li>A5</li><li>A6</li><li>A7</li><li>A8</li><li>A9</li><li>A10</li><li>B0</li><li>B1</li><li>B2</li><li>B3</li><li>B4</li><li>B5</li><li>B6</li><li>B7</li><li>B8</li><li>B9</li><li>B10</li><li>C0</li><li>C1</li><li>C2</li><li>C3</li><li>C4</li><li>C5</li><li>C6</li><li>C7</li><li>C8</li><li>C9</li><li>C10</li><li>RA0</li><li>RA1</li><li>RA2</li><li>RA3</li><li>RA4</li><li>SRA0</li><li>SRA1</li><li>SRA2</li><li>SRA3</li><li>SRA4</li><li>LETTER</li><li>LEGAL</li><li>EXECUTIVE</li><li>FOLIO</li></ul>
* @param boolean $keepmargins if true overwrites the default page margins with the current margins
* @param boolean $tocpage if true set the tocpage state to true (the added page will be used to display Table Of Content).
* @access public
* @since 1.0
* @see startPage(), endPage()
* @see startPage(), endPage(), addTOCPage(), endTOCPage()
*/
public function AddPage($orientation='', $format='', $keepmargins=false) {
public function AddPage($orientation='', $format='', $keepmargins=false, $tocpage=false) {
if (!isset($this->original_lMargin) OR $keepmargins) {
$this->original_lMargin = $this->lMargin;
}
@ -2635,16 +2664,17 @@ if (!class_exists('TCPDF', false)) {
// terminate previous page
$this->endPage();
// start new page
$this->startPage($orientation, $format);
$this->startPage($orientation, $format, $tocpage);
}
/**
* Terminate the current page
* @access protected
* @param boolean $tocpage if true set the tocpage state to false (end the page used to display Table Of Content).
* @access public
* @since 4.2.010 (2008-11-14)
* @see startPage(), AddPage()
* @see AddPage(), startPage(), addTOCPage(), endTOCPage()
*/
protected function endPage() {
public function endPage($tocpage=false) {
// check if page is already closed
if (($this->page == 0) OR ($this->numpages > $this->page) OR (!$this->pageopen[$this->page])) {
return;
@ -2657,6 +2687,9 @@ if (!class_exists('TCPDF', false)) {
// mark page as closed
$this->pageopen[$this->page] = false;
$this->InFooter = false;
if ($tocpage) {
$this->tocpage = false;
}
}
/**
@ -2664,11 +2697,15 @@ if (!class_exists('TCPDF', false)) {
* The origin of the coordinate system is at the top-left corner and increasing ordinates go downwards.
* @param string $orientation page orientation. Possible values are (case insensitive):<ul><li>P or PORTRAIT (default)</li><li>L or LANDSCAPE</li></ul>
* @param mixed $format The format used for pages. It can be either one of the following values (case insensitive) or a custom format in the form of a two-element array containing the width and the height (expressed in the unit given by unit).<ul><li>4A0</li><li>2A0</li><li>A0</li><li>A1</li><li>A2</li><li>A3</li><li>A4 (default)</li><li>A5</li><li>A6</li><li>A7</li><li>A8</li><li>A9</li><li>A10</li><li>B0</li><li>B1</li><li>B2</li><li>B3</li><li>B4</li><li>B5</li><li>B6</li><li>B7</li><li>B8</li><li>B9</li><li>B10</li><li>C0</li><li>C1</li><li>C2</li><li>C3</li><li>C4</li><li>C5</li><li>C6</li><li>C7</li><li>C8</li><li>C9</li><li>C10</li><li>RA0</li><li>RA1</li><li>RA2</li><li>RA3</li><li>RA4</li><li>SRA0</li><li>SRA1</li><li>SRA2</li><li>SRA3</li><li>SRA4</li><li>LETTER</li><li>LEGAL</li><li>EXECUTIVE</li><li>FOLIO</li></ul>
* @access protected
* @param boolean $tocpage if true set the tocpage state to true (the added page will be used to display Table of Content).
* @access public
* @since 4.2.010 (2008-11-14)
* @see endPage(), AddPage()
* @see AddPage(), endPage(), addTOCPage(), endTOCPage()
*/
protected function startPage($orientation='', $format='') {
public function startPage($orientation='', $format='', $tocpage=false) {
if ($tocpage) {
$this->tocpage = true;
}
if ($this->numpages > $this->page) {
// this page has been already added
$this->setPage($this->page + 1);
@ -8187,6 +8224,16 @@ if (!class_exists('TCPDF', false)) {
return "stream\n".$s."\nendstream";
}
/**
* Output a stream.
* @param string $s string to output.
* @param int $n object reference for encryption mode
* @access protected
*/
protected function _putstream($s, $n=0) {
$this->_out($this->_getstream($s, $n));
}
/**
* Output a string to the document.
* @param string $s string to output.
@ -10596,7 +10643,7 @@ if (!class_exists('TCPDF', false)) {
if (empty($page)) {
$page = $this->PageNo();
}
$this->outlines[] = array('t' => $txt, 'l' => $level, 'y' => $y, 'p' => $page);
$this->outlines[] = array('t' => strip_tags($txt), 'l' => $level, 'y' => $y, 'p' => $page);
}
/**
@ -11987,7 +12034,7 @@ if (!class_exists('TCPDF', false)) {
* @param int $num page number
* @access protected
* @since 4.5.001 (2009-01-04)
* @see addTOC()
* @see addTOC(), addHTMLTOC()
*/
protected function formatTOCPageNumber($num) {
return number_format((float)$num, 0, '', '.');
@ -17486,7 +17533,8 @@ if (!class_exists('TCPDF', false)) {
/**
* Output a Table of Content Index (TOC).
* After calling this method you have to call addPage() to add other content.
* Before calling this method you have to open the page using the addTOCPage() method.
* After calling this method you have to call endTOCPage() to close the TOC page.
* You can override this method to achieve different styles.
* @param int $page page number where this TOC should be inserted (leave empty for current page).
* @param string $numbersfont set the font for page numbers (please use monospaced font for better alignment).
@ -17495,6 +17543,7 @@ if (!class_exists('TCPDF', false)) {
* @access public
* @author Nicola Asuni
* @since 4.5.000 (2009-01-02)
* @see addTOCPage(), endTOCPage(), addHTMLTOC()
*/
public function addTOC($page='', $numbersfont='', $filler='.', $toc_name='TOC') {
$fontsize = $this->FontSizePt;
@ -17633,6 +17682,109 @@ if (!class_exists('TCPDF', false)) {
}
}
/**
* Output a Table Of Content Index (TOC) using HTML templates.
* Before calling this method you have to open the page using the addTOCPage() method.
* After calling this method you have to call endTOCPage() to close the TOC page.
* @param int $page page number where this TOC should be inserted (leave empty for current page).
* @param string $toc_name name to use for TOC bookmark.
* @param array $templates array of html templates. Use: #TOC_DESCRIPTION# for bookmark title, #TOC_PAGE_NUMBER# for page number.
* @parma boolean $correct_align if true correct the number alignment (numbers must be in monospaced font like courier and right aligned on LTR, or left aligned on RTL)
* @access public
* @author Nicola Asuni
* @since 5.0.001 (2010-05-06)
* @see addTOCPage(), endTOCPage(), addTOC()
*/
public function addHTMLTOC($page='', $toc_name='TOC', $templates=array(), $correct_align=true) {
$prev_htmlLinkColorArray = $this->htmlLinkColorArray;
$prev_htmlLinkFontStyle = $this->htmlLinkFontStyle;
// set new style for link
$this->htmlLinkColorArray = array();
$this->htmlLinkFontStyle = '';
$page_first = $this->getPage();
foreach ($this->outlines as $key => $outline) {
if ($this->empty_string($page)) {
$pagenum = $outline['p'];
} else {
// placemark to be replaced with the correct number
$pagenum = '{#'.($outline['p']).'}';
if (($this->CurrentFont['type'] == 'TrueTypeUnicode') OR ($this->CurrentFont['type'] == 'cidfont0')) {
$pagenum = '{'.$pagenum.'}';
}
}
// get HTML template
$row = $templates[$outline['l']];
// replace templates with current values
$row = str_replace('#TOC_DESCRIPTION#', $outline['t'], $row);
$row = str_replace('#TOC_PAGE_NUMBER#', $pagenum, $row);
// add link to page
$row = '<a href="#'.$outline['p'].'">'.$row.'</a>';
// write bookmark entry
$this->writeHTML($row, false, false, true, false, '');
}
// restore link styles
$this->htmlLinkColorArray = $prev_htmlLinkColorArray;
$this->htmlLinkFontStyle = $prev_htmlLinkFontStyle;
// move TOC page and replace numbers
$page_last = $this->getPage();
$numpages = $page_last - $page_first + 1;
if (!$this->empty_string($page)) {
for ($p = $page_first; $p <= $page_last; ++$p) {
// get page data
$temppage = $this->getPageBuffer($p);
for ($n = 1; $n <= $this->numpages; ++$n) {
// update page numbers
$k = '{#'.$n.'}';
$ku = '{'.$k.'}';
$alias_a = $this->_escape($k);
$alias_au = $this->_escape('{'.$k.'}');
if ($this->isunicode) {
$alias_b = $this->_escape($this->UTF8ToLatin1($k));
$alias_bu = $this->_escape($this->UTF8ToLatin1($ku));
$alias_c = $this->_escape($this->utf8StrRev($k, false, $this->tmprtl));
$alias_cu = $this->_escape($this->utf8StrRev($ku, false, $this->tmprtl));
}
if ($n >= $page) {
$np = $n + $numpages;
} else {
$np = $n;
}
$ns = $this->formatTOCPageNumber($np);
$nu = $ns;
if ($correct_align) {
$sdiff = strlen($k) - strlen($ns);
$sdiffu = strlen($ku) - strlen($ns);
$sfill = str_repeat(' ', $sdiff);
$sfillu = str_repeat(' ', $sdiffu);
if ($this->rtl) {
$ns = $ns.$sfill;
$nu = $nu.$sfillu;
} else {
$ns = $sfill.$ns;
$nu = $sfillu.$nu;
}
}
$nu = $this->UTF8ToUTF16BE($nu, false);
$temppage = str_replace($alias_au, $nu, $temppage);
if ($this->isunicode) {
$temppage = str_replace($alias_bu, $nu, $temppage);
$temppage = str_replace($alias_cu, $nu, $temppage);
$temppage = str_replace($alias_b, $ns, $temppage);
$temppage = str_replace($alias_c, $ns, $temppage);
}
$temppage = str_replace($alias_a, $ns, $temppage);
}
// save changes
$this->setPageBuffer($p, $temppage);
}
// move pages
$this->Bookmark($toc_name, 0, 0, $page_first);
for ($i = 0; $i < $numpages; ++$i) {
$this->movePage($page_last, $page);
}
}
}
/**
* Stores a copy of the current TCPDF object used for undo operation.
* @access public