mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-11-22 12:55:10 +00:00
4.9.012
This commit is contained in:
parent
13a3ef412d
commit
0f5adf2041
109
CHANGELOG.TXT
109
CHANGELOG.TXT
@ -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.
|
||||
|
@ -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:
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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> </td><td>Nicola Asuni - info@tecnick.com</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>version:</b> </td><td>4.9.011</td>
|
||||
<td><b>version:</b> </td><td>4.9.012</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>link:</b> </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> </td><td>of hyphenation patterns</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>author:</b> </td><td>Nicola Asuni</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>since:</b> </td><td>4.9.012 (2010-04-12)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>access:</b> </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 </td>
|
||||
<td><b>$file</b> </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> </td><td>text with soft hyphens</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>author:</b> </td><td>Nicola Asuni</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>since:</b> </td><td>4.9.012 (2010-04-12)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>access:</b> </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 </td>
|
||||
<td><b>$text</b> </td>
|
||||
<td>text to process</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="type">mixed </td>
|
||||
<td><b>$patterns</b> </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 </td>
|
||||
<td><b>$dictionary</b> </td>
|
||||
<td>Array of words to be returned without applying the hyphenation algoritm.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="type">int </td>
|
||||
<td><b>$leftmin</b> </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 </td>
|
||||
<td><b>$rightmin</b> </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 </td>
|
||||
<td><b>$charmin</b> </td>
|
||||
<td>Minimum word lenght to apply the hyphenation algoritm.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="type">int </td>
|
||||
<td><b>$charmax</b> </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> </td><td>text with soft hyphens</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>author:</b> </td><td>Nicola Asuni</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>since:</b> </td><td>4.9.012 (2010-04-12)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>access:</b> </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 </td>
|
||||
<td><b>$word</b> </td>
|
||||
<td>array of chars</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="type">array </td>
|
||||
<td><b>$patterns</b> </td>
|
||||
<td>Array of hypenation patterns.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="type">array </td>
|
||||
<td><b>$dictionary</b> </td>
|
||||
<td>Array of words to be returned without applying the hyphenation algoritm.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="type">int </td>
|
||||
<td><b>$leftmin</b> </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 </td>
|
||||
<td><b>$rightmin</b> </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 </td>
|
||||
<td><b>$charmin</b> </td>
|
||||
<td>Minimum word lenght to apply the hyphenation algoritm.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="type">int </td>
|
||||
<td><b>$charmax</b> </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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>version:</b> </td><td>4.9.011</td>
|
||||
<td><b>version:</b> </td><td>4.9.012</td>
|
||||
</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>
|
||||
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -603,6 +603,8 @@
|
||||
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetHtmlDomArray">TCPDF::getHtmlDomArray()</a><br> 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> 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> 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> 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> 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> 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> 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>
|
||||
|
@ -766,6 +766,8 @@
|
||||
<dd>in file tcpdf.php, method <a href="com-tecnick-tcpdf/TCPDF.html#methodgetHtmlDomArray">TCPDF::getHtmlDomArray()</a><br> 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> 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> 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> 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> 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> 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> 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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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): ­
|
||||
@ -87,7 +85,24 @@ Unicode Data for SHY:
|
||||
UTF-8 (hex): 0xC2 0xAD (c2ad)
|
||||
*/
|
||||
|
||||
// html text with soft hyphens (­)
|
||||
/*
|
||||
// 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 (­)
|
||||
$html = 'On the other hand, we de­nounce with righ­teous in­dig­na­tion and dis­like men who are so be­guiled and de­mo­r­al­ized by the charms of plea­sure of the mo­ment, so blind­ed by de­sire, that they can­not fore­see the pain and trou­ble that are bound to en­sue; and equal blame be­longs to those who fail in their du­ty through weak­ness of will, which is the same as say­ing through shrink­ing from toil and pain. Th­ese cas­es are per­fect­ly sim­ple and easy to distin­guish. In a free hour, when our pow­er of choice is un­tram­melled and when noth­ing pre­vents our be­ing able to do what we like best, ev­ery plea­sure is to be wel­comed and ev­ery pain avoid­ed. But in cer­tain cir­cum­s­tances and ow­ing to the claims of du­ty or the obli­ga­tions of busi­ness it will fre­quent­ly oc­cur that plea­sures have to be re­pu­di­at­ed and an­noy­ances ac­cept­ed. The wise man there­fore al­ways holds in th­ese mat­ters to this prin­ci­ple of se­lec­tion: he re­jects plea­sures to se­cure other greater plea­sures, or else he en­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
|
||||
//============================================================+
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user