32
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-10-31 18:52:35 +00:00
This commit is contained in:
nicolaasuni 2010-04-12 17:23:15 +02:00
parent 13a3ef412d
commit 0f5adf2041
21 changed files with 2803 additions and 2399 deletions

View File

@ -1,87 +1,90 @@
4.9.012 (2010-04-12)
- The hyphenateText() method was added to automatically hyphenate text (see example n. 46).
4.9.011 (2010-04-07)
- Vertical alignments for Cell() method were improved (see example n. 57).
- Vertical alignments for Cell() method were improved (see example n. 57).
4.9.010 (2010-04-06)
- Signature of Cell() method now includes a new parameters for vertical alignment (see example n. 57).
- Text() method was extended to include all Cell() parameters.
- HTML line alignment procedure was changed to fix some bugs.
- Signature of Cell() method now includes new parameters for vertical alignment (see example n. 57).
- Text() method was extended to include all Cell() parameters.
- HTML line alignment procedure was changed to fix some bugs.
4.9.009 (2010-04-05)
- Text() method was fixed for backward compatibility.
- Text() method was fixed for backward compatibility.
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.
- 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)
- Font Descent computation was fixed (patch #2981441).
- Font Descent computation was fixed (patch #2981441).
4.9.006 (2010-04-02)
- The constant K_TCPDF_CALLS_IN_HTML was added on configuration file to enable/disable the ability to call TCPDF methods in HTML.
- The usage of tcpdf tag in HTML mode was changed to remove the possible security flaw offered by the eval() function (thanks to Matthias Hecker for spotting this security problem). See the new example n. 49 for further information.
- The constant K_TCPDF_CALLS_IN_HTML was added on configuration file to enable/disable the ability to call TCPDF methods in HTML.
- The usage of tcpdf tag in HTML mode was changed to remove the possible security flaw offered by the eval() function (thanks to Matthias Hecker for spotting this security problem). See the new example n. 49 for further information.
4.9.005 (2010-04-01)
- Bug# 2980354 "Wrong File attachment description with security" was fixed.
- Several problems with HTML line alignment were fixed.
- The constant K_THAI_TOPCHAR was added on configuration file to enable/disable the special procedure used to avoid the overlappind of symbols on Thai language.
- A problem with font name directory was fixed.
- A bug on _destroy() method was fixed.
- Bug# 2980354 "Wrong File attachment description with security" was fixed.
- Several problems with HTML line alignment were fixed.
- The constant K_THAI_TOPCHAR was added on configuration file to enable/disable the special procedure used to avoid the overlappind of symbols on Thai language.
- A problem with font name directory was fixed.
- A bug on _destroy() method was fixed.
4.9.004 (2010-03-31)
- Patch #979681 "GetCharWidth - default character width" was applied (bugfix).
- Patch #979681 "GetCharWidth - default character width" was applied (bugfix).
4.9.003 (2010-03-30)
- Problem of first <br /> on multiple columns was fixed.
- HTML line alignment was fixed.
- A QR-code bug was fixed.
- Problem of first <br /> on multiple columns was fixed.
- HTML line alignment was fixed.
- A QR-code bug was fixed.
4.9.002 (2010-03-29)
- Patch #2978349 "$ignore_min_height is ignored in function Cell()" was applied.
- Bug #2978607 "2D Barcodes are wrong" was fixed.
- A problem with HTML block tags was fixed.
- Artificial italic for CID-0 fonts was added.
- Several multicolumn bugs were fixed.
- Support for HTML tables on multicolumn was added.
- Patch #2978349 "$ignore_min_height is ignored in function Cell()" was applied.
- Bug #2978607 "2D Barcodes are wrong" was fixed.
- A problem with HTML block tags was fixed.
- Artificial italic for CID-0 fonts was added.
- Several multicolumn bugs were fixed.
- Support for HTML tables on multicolumn was added.
4.9.001 (2010-03-28)
- QR Code minor bug was fixed.
- Multicolumn mode was added (see the new example n. 10).
- The following methods were added: setEqualColumns(), setColumnsArray(), selectColumn().
- Thai diacritics support were changed (note that this is incompatible with html justification).
- QR Code minor bug was fixed.
- Multicolumn mode was added (see the new example n. 10).
- The following methods were added: setEqualColumns(), setColumnsArray(), selectColumn().
- Thai diacritics support were changed (note that this is incompatible with html justification).
4.9.000 (2010-03-27)
- QR Code (2D barcode) support was added (see example n. 50).
- The following methods were added to print crop and registration marks (see example n. 56): colorRegistrationBar(), cropMark(), registrationMark().
- Limited support for CSS line-height property was added.
- Gradient method now supports Gray, RGB and CMYK space color.
- Example n. 51 was updated.
- Vertical alignment of font inside cell was fixed.
- Support for multiple Thai diacritics was added.
- Bug item #2974929 "Duplicate case values" was fixed.
- Bug item #2976729 "File attachment not working with security" was fixed.
- QR Code (2D barcode) support was added (see example n. 50).
- The following methods were added to print crop and registration marks (see example n. 56): colorRegistrationBar(), cropMark(), registrationMark().
- Limited support for CSS line-height property was added.
- Gradient method now supports Gray, RGB and CMYK space color.
- Example n. 51 was updated.
- Vertical alignment of font inside cell was fixed.
- Support for multiple Thai diacritics was added.
- Bug item #2974929 "Duplicate case values" was fixed.
- Bug item #2976729 "File attachment not working with security" was fixed.
--------------------------------------------------------------------------------
4.8.039 (2010-03-20)
- Problems related to custom locale settings were fixed.
- Problems related to HTML on Header and Footer were fixed.
- Problems related to custom locale settings were fixed.
- Problems related to HTML on Header and Footer were fixed.
4.8.038 (2010-03-13)
- Various bugs related to page-break in HTML mode were fixed.
- Bug item #2968974 "Another <thead> pagebreak problem" was fixed.
- Bug item #2969276 "justification problem" was fixed.
- Bug item #2969289 "bug when using justified text and custom headers" was fixed.
- Images are now automatically resized to be contained on the page.
- Some HTML line alignments were fixed.
- Signature of AddPage() and SetMargins() methods were changed to include an option to set default page margins.
- Various bugs related to page-break in HTML mode were fixed.
- Bug item #2968974 "Another <thead> pagebreak problem" was fixed.
- Bug item #2969276 "justification problem" was fixed.
- Bug item #2969289 "bug when using justified text and custom headers" was fixed.
- Images are now automatically resized to be contained on the page.
- Some HTML line alignments were fixed.
- Signature of AddPage() and SetMargins() methods were changed to include an option to set default page margins.
4.8.037 (2010-03-03)
- Bug item #2962068 was fixed.
- Bug item #2967017 "Problems with <thead> and pagebreaks" was fixed.
- Bug item #2967023 "table header lost with pagebreak" was fixed.
- Bug item #2967032 "Header lost with nested tables" was fixed.
- Bug item #2962068 was fixed.
- Bug item #2967017 "Problems with <thead> and pagebreaks" was fixed.
- Bug item #2967023 "table header lost with pagebreak" was fixed.
- Bug item #2967032 "Header lost with nested tables" was fixed.
4.8.036 (2010-02-24)
- Automatic page break for HTML images was improved.

View File

@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
Version: 4.9.011
Release date: 2010-04-07
Version: 4.9.012
Release date: 2010-04-12
Author: Nicola Asuni
Copyright (c) 2001-2010:

View File

@ -55,7 +55,7 @@
<div class="credit">
<hr />
Documentation generated on Wed, 07 Apr 2010 10:00:55 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:00 +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, 07 Apr 2010 10:00:55 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:01 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -80,7 +80,7 @@ Source Location: /tcpdf.php<br /><br />
<h4>Version:</h4>
<ul>
<li>4.9.011</li>
<li>4.9.012</li>
</ul>
@ -374,6 +374,7 @@ Source Location: /tcpdf.php<br /><br />
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodgetHeaderMargin">getHeaderMargin</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodgetHtmlDomArray">getHtmlDomArray</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodgetHTMLUnitToUnits">getHTMLUnitToUnits</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodgetHyphenPatternsFromTEX">getHyphenPatternsFromTEX</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodgetImageBuffer">getImageBuffer</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodgetImageFileType">getImageFileType</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodgetImageRBX">getImageRBX</a></li>
@ -405,6 +406,8 @@ Source Location: /tcpdf.php<br /><br />
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodget_mqr">get_mqr</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodGradient">Gradient</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodHeader">Header</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodhyphenateText">hyphenateText</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodhyphenateWord">hyphenateWord</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodImage">Image</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodImageEps">ImageEps</a></li>
<li><a href="../com-tecnick-tcpdf/TCPDF.html#methodImagePngAlpha">ImagePngAlpha</a></li>
@ -662,7 +665,7 @@ This is a PHP class for generating PDF documents without requiring external exte
<td><b>author:</b>&nbsp;&nbsp;</td><td>Nicola Asuni - info@tecnick.com</td>
</tr>
<tr>
<td><b>version:</b>&nbsp;&nbsp;</td><td>4.9.011</td>
<td><b>version:</b>&nbsp;&nbsp;</td><td>4.9.012</td>
</tr>
<tr>
<td><b>link:</b>&nbsp;&nbsp;</td><td><a href="http://www.tcpdf.org">http://www.tcpdf.org</a></td>
@ -10013,6 +10016,51 @@ $point)</code>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodgetHyphenPatternsFromTEX"></a>
<h3>method getHyphenPatternsFromTEX <span class="smalllinenumber">[line 17545]</span></h3>
<div class="function">
<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>array getHyphenPatternsFromTEX(
string
$file)</code>
</td></tr></table>
</td></tr></table><br />
Returns an array of hyphenation patterns.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b>&nbsp;&nbsp;</td><td>of hyphenation patterns</td>
</tr>
<tr>
<td><b>author:</b>&nbsp;&nbsp;</td><td>Nicola Asuni</td>
</tr>
<tr>
<td><b>since:</b>&nbsp;&nbsp;</td><td>4.9.012 (2010-04-12)</td>
</tr>
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string&nbsp;&nbsp;</td>
<td><b>$file</b>&nbsp;&nbsp;</td>
<td>TEX file containing hypenation patterns. TEX pattrns can be downloaded from http://www.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodgetImageBuffer"></a>
<h3>method getImageBuffer <span class="smalllinenumber">[line 16711]</span></h3>
@ -11154,6 +11202,168 @@ $coords)</code>
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodhyphenateText"></a>
<h3>method hyphenateText <span class="smalllinenumber">[line 17584]</span></h3>
<div class="function">
<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>array hyphenateText(
string
$text, mixed
$patterns, [array
$dictionary = array()], [int
$leftmin = 1], [int
$rightmin = 2], [int
$charmin = 1], [int
$charmax = 8])</code>
</td></tr></table>
</td></tr></table><br />
Returns text with soft hyphens.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b>&nbsp;&nbsp;</td><td>text with soft hyphens</td>
</tr>
<tr>
<td><b>author:</b>&nbsp;&nbsp;</td><td>Nicola Asuni</td>
</tr>
<tr>
<td><b>since:</b>&nbsp;&nbsp;</td><td>4.9.012 (2010-04-12)</td>
</tr>
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">string&nbsp;&nbsp;</td>
<td><b>$text</b>&nbsp;&nbsp;</td>
<td>text to process</td>
</tr>
<tr>
<td class="type">mixed&nbsp;&nbsp;</td>
<td><b>$patterns</b>&nbsp;&nbsp;</td>
<td>Array of hypenation patterns or a TEX file containing hypenation patterns. TEX pattrns can be downloaded from http://www.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/</td>
</tr>
<tr>
<td class="type">array&nbsp;&nbsp;</td>
<td><b>$dictionary</b>&nbsp;&nbsp;</td>
<td>Array of words to be returned without applying the hyphenation algoritm.</td>
</tr>
<tr>
<td class="type">int&nbsp;&nbsp;</td>
<td><b>$leftmin</b>&nbsp;&nbsp;</td>
<td>Minimum number of character to leave on the left of the word without applying the hyphens.</td>
</tr>
<tr>
<td class="type">int&nbsp;&nbsp;</td>
<td><b>$rightmin</b>&nbsp;&nbsp;</td>
<td>Minimum number of character to leave on the right of the word without applying the hyphens.</td>
</tr>
<tr>
<td class="type">int&nbsp;&nbsp;</td>
<td><b>$charmin</b>&nbsp;&nbsp;</td>
<td>Minimum word lenght to apply the hyphenation algoritm.</td>
</tr>
<tr>
<td class="type">int&nbsp;&nbsp;</td>
<td><b>$charmax</b>&nbsp;&nbsp;</td>
<td>Maximum lenght of broken piece of word.</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodhyphenateWord"></a>
<h3>method hyphenateWord <span class="smalllinenumber">[line 17475]</span></h3>
<div class="function">
<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>array hyphenateWord(
array
$word, array
$patterns, [array
$dictionary = array()], [int
$leftmin = 1], [int
$rightmin = 2], [int
$charmin = 1], [int
$charmax = 8])</code>
</td></tr></table>
</td></tr></table><br />
Returns an array of chars containing soft hyphens.<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b>return:</b>&nbsp;&nbsp;</td><td>text with soft hyphens</td>
</tr>
<tr>
<td><b>author:</b>&nbsp;&nbsp;</td><td>Nicola Asuni</td>
</tr>
<tr>
<td><b>since:</b>&nbsp;&nbsp;</td><td>4.9.012 (2010-04-12)</td>
</tr>
<tr>
<td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
</tr>
</table>
</div>
<br /><br />
<h4>Parameters:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="type">array&nbsp;&nbsp;</td>
<td><b>$word</b>&nbsp;&nbsp;</td>
<td>array of chars</td>
</tr>
<tr>
<td class="type">array&nbsp;&nbsp;</td>
<td><b>$patterns</b>&nbsp;&nbsp;</td>
<td>Array of hypenation patterns.</td>
</tr>
<tr>
<td class="type">array&nbsp;&nbsp;</td>
<td><b>$dictionary</b>&nbsp;&nbsp;</td>
<td>Array of words to be returned without applying the hyphenation algoritm.</td>
</tr>
<tr>
<td class="type">int&nbsp;&nbsp;</td>
<td><b>$leftmin</b>&nbsp;&nbsp;</td>
<td>Minimum number of character to leave on the left of the word without applying the hyphens.</td>
</tr>
<tr>
<td class="type">int&nbsp;&nbsp;</td>
<td><b>$rightmin</b>&nbsp;&nbsp;</td>
<td>Minimum number of character to leave on the right of the word without applying the hyphens.</td>
</tr>
<tr>
<td class="type">int&nbsp;&nbsp;</td>
<td><b>$charmin</b>&nbsp;&nbsp;</td>
<td>Minimum word lenght to apply the hyphenation algoritm.</td>
</tr>
<tr>
<td class="type">int&nbsp;&nbsp;</td>
<td><b>$charmax</b>&nbsp;&nbsp;</td>
<td>Maximum lenght of broken piece of word.</td>
</tr>
</table>
</div><br />
<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<hr />
<a name="methodImage"></a>
<h3>method Image <span class="smalllinenumber">[line 5065]</span></h3>
@ -22281,7 +22491,7 @@ $file)</code>
<div class="credit">
<hr />
Documentation generated on Wed, 07 Apr 2010 10:00:56 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:01 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -296,7 +296,7 @@ $type)</code>
<div class="credit">
<hr />
Documentation generated on Wed, 07 Apr 2010 10:00:55 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:00 +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, 07 Apr 2010 10:00:55 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:00 +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, 07 Apr 2010 10:00:55 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:00 +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, 07 Apr 2010 10:00:55 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:00 +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, 07 Apr 2010 10:00:58 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:04 +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, 07 Apr 2010 10:00:55 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:01 +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, 07 Apr 2010 10:00:55 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:01 +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>4.9.011</td>
<td><b>version:</b>&nbsp;&nbsp;</td><td>4.9.012</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 4.9.011 (http://www.tcpdf.org)'</code>
<code>PDF_PRODUCER = 'TCPDF 4.9.012 (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, 07 Apr 2010 10:00:56 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:01 +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, 07 Apr 2010 10:00:58 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:04 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -603,6 +603,8 @@
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetHtmlDomArray">TCPDF::getHtmlDomArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns the HTML DOM array.</dd>
<dt><b>getHTMLUnitToUnits</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetHTMLUnitToUnits">TCPDF::getHTMLUnitToUnits()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Convert HTML string containing value and unit of measure to user's units or points.</dd>
<dt><b>getHyphenPatternsFromTEX</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetHyphenPatternsFromTEX">TCPDF::getHyphenPatternsFromTEX()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of hyphenation patterns.</dd>
<dt><b>getImageBuffer</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetImageBuffer">TCPDF::getImageBuffer()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get image buffer content.</dd>
<dt><b>getImageFileType</b></dt>
@ -715,6 +717,10 @@
<dd>in file barcodes.php, method <a href="com-tecnick-tcpdf/TCPDFBarcode.html#methodhex_to_dec">TCPDFBarcode::hex_to_dec()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Convert large hexadecimal number to decimal representation (string).</dd>
<dt><b>htmlcolors.php</b></dt>
<dd>procedural page <a href="com-tecnick-tcpdf/_htmlcolors.php.html">htmlcolors.php</a></dd>
<dt><b>hyphenateText</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodhyphenateText">TCPDF::hyphenateText()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns text with soft hyphens.</dd>
<dt><b>hyphenateWord</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodhyphenateWord">TCPDF::hyphenateWord()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of chars containing soft hyphens.</dd>
</dl>
</div>
<a href="elementindex.html#top">top</a><br>
@ -1854,7 +1860,7 @@
<a href="elementindex.html#top">top</a><br>
<div class="credit">
<hr />
Documentation generated on Wed, 07 Apr 2010 10:00:55 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:00 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -766,6 +766,8 @@
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetHtmlDomArray">TCPDF::getHtmlDomArray()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns the HTML DOM array.</dd>
<dt><b>getHTMLUnitToUnits</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetHTMLUnitToUnits">TCPDF::getHTMLUnitToUnits()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Convert HTML string containing value and unit of measure to user's units or points.</dd>
<dt><b>getHyphenPatternsFromTEX</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetHyphenPatternsFromTEX">TCPDF::getHyphenPatternsFromTEX()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of hyphenation patterns.</dd>
<dt><b>getImageBuffer</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetImageBuffer">TCPDF::getImageBuffer()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Get image buffer content.</dd>
<dt><b>getImageFileType</b></dt>
@ -878,6 +880,10 @@
<dd>in file barcodes.php, method <a href="com-tecnick-tcpdf/TCPDFBarcode.html#methodhex_to_dec">TCPDFBarcode::hex_to_dec()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Convert large hexadecimal number to decimal representation (string).</dd>
<dt><b>htmlcolors.php</b></dt>
<dd>procedural page <a href="com-tecnick-tcpdf/_htmlcolors.php.html">htmlcolors.php</a></dd>
<dt><b>hyphenateText</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodhyphenateText">TCPDF::hyphenateText()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns text with soft hyphens.</dd>
<dt><b>hyphenateWord</b></dt>
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodhyphenateWord">TCPDF::hyphenateWord()</a><br>&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of chars containing soft hyphens.</dd>
</dl>
</div>
<a href="elementindex_com-tecnick-tcpdf.html#top">top</a><br>
@ -1883,7 +1889,7 @@
<a href="elementindex_com-tecnick-tcpdf.html#top">top</a><br>
<div class="credit">
<hr />
Documentation generated on Wed, 07 Apr 2010 10:00:55 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:00 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -35,7 +35,7 @@
<a href="#Post-parsing">Post-parsing</a><br>
<div class="credit">
<hr />
Documentation generated on Wed, 07 Apr 2010 10:00:58 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:04 +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, 07 Apr 2010 10:00:55 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:00 +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, 07 Apr 2010 10:00:55 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
Documentation generated on Mon, 12 Apr 2010 17:23:00 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>

View File

@ -2,13 +2,13 @@
//============================================================+
// File name : example_046.php
// Begin : 2009-02-28
// Last Update : 2009-09-30
//
// Last Update : 2010-04-12
//
// Description : Example 046 for TCPDF class
// Text Hyphenation
//
//
// Author: Nicola Asuni
//
//
// (c) Copyright:
// Nicola Asuni
// Tecnick.com s.r.l.
@ -34,7 +34,7 @@ require_once('../config/lang/eng.php');
require_once('../tcpdf.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set document information
$pdf->SetCreator(PDF_CREATOR);
@ -62,10 +62,10 @@ $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf->setLanguageArray($l);
$pdf->setLanguageArray($l);
// ---------------------------------------------------------
@ -76,8 +76,6 @@ $pdf->SetFont('times', '', 10);
$pdf->AddPage();
/*
You can use an external class to automatically hyphens the text by adding the SHY characters;
Unicode Data for SHY:
Name : SOFT HYPHEN, commonly abbreviated as SHY
HTML Entity (decimal): &#173;
@ -87,7 +85,24 @@ Unicode Data for SHY:
UTF-8 (hex): 0xC2 0xAD (c2ad)
*/
// html text with soft hyphens (&shy;)
/*
// You can autmatically add SOFT HYPHENS to your text using
// the hyphenateText() method, but this requires either an
// hyphenation pattern array of a hyphenation pattern TEX file.
// You can download hyphenation TEX patterns from:
// http://www.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/
// EXAMPLE:
$html = 'On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains.';
$hyphen_patterns = $pdf->getHyphenPatternsFromTEX('../hyphens/hyph-en-gb.tex');
$html = $pdf->hyphenateText($html, $hyphen_patterns, $dictionary=array(), $leftmin=1, $rightmin=2, $charmin=1, $charmax=8);
*/
// HTML text with soft hyphens (&shy;)
$html = 'On the other hand, we de&shy;nounce with righ&shy;teous in&shy;dig&shy;na&shy;tion and dis&shy;like men who are so be&shy;guiled and de&shy;mo&shy;r&shy;al&shy;ized by the charms of plea&shy;sure of the mo&shy;ment, so blind&shy;ed by de&shy;sire, that they can&shy;not fore&shy;see the pain and trou&shy;ble that are bound to en&shy;sue; and equal blame be&shy;longs to those who fail in their du&shy;ty through weak&shy;ness of will, which is the same as say&shy;ing through shrink&shy;ing from toil and pain. Th&shy;ese cas&shy;es are per&shy;fect&shy;ly sim&shy;ple and easy to distin&shy;guish. In a free hour, when our pow&shy;er of choice is un&shy;tram&shy;melled and when noth&shy;ing pre&shy;vents our be&shy;ing able to do what we like best, ev&shy;ery plea&shy;sure is to be wel&shy;comed and ev&shy;ery pain avoid&shy;ed. But in cer&shy;tain cir&shy;cum&shy;s&shy;tances and ow&shy;ing to the claims of du&shy;ty or the obli&shy;ga&shy;tions of busi&shy;ness it will fre&shy;quent&shy;ly oc&shy;cur that plea&shy;sures have to be re&shy;pu&shy;di&shy;at&shy;ed and an&shy;noy&shy;ances ac&shy;cept&shy;ed. The wise man there&shy;fore al&shy;ways holds in th&shy;ese mat&shy;ters to this prin&shy;ci&shy;ple of se&shy;lec&shy;tion: he re&shy;jects plea&shy;sures to se&shy;cure other greater plea&shy;sures, or else he en&shy;dures pains to avoid worse pains.';
// print a cell
@ -99,6 +114,6 @@ $pdf->writeHTMLCell(50, 0, '', '', $html, 1, 1, 0, true, 'J');
$pdf->Output('example_046.pdf', 'I');
//============================================================+
// END OF FILE
// END OF FILE
//============================================================+
?>

4788
tcpdf.php

File diff suppressed because it is too large Load Diff