mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-12-23 00:48:55 +00:00
4.6.030
This commit is contained in:
parent
e10fdf1735
commit
6042b033f5
@ -1,3 +1,8 @@
|
||||
4.6.030 (2009-08-29)
|
||||
- IMPORTANT: percentages on table cell widths are now relative to the full table width (as in standard HTML).
|
||||
- Various minor bugs were fixed.
|
||||
- Example n. 52 (digital signature) was updated.
|
||||
|
||||
4.6.029 (2009-08-26)
|
||||
- PHP4 version was fixed.
|
||||
|
||||
|
@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
|
||||
------------------------------------------------------------
|
||||
|
||||
Name: TCPDF
|
||||
Version: 4.6.029
|
||||
Release date: 2009-08-26
|
||||
Version: 4.6.030
|
||||
Release date: 2009-08-29
|
||||
Author: Nicola Asuni
|
||||
|
||||
Copyright (c) 2001-2009:
|
||||
|
@ -2,8 +2,8 @@
|
||||
//============================================================+
|
||||
// File name : barcodes.php
|
||||
// Begin : 2008-06-09
|
||||
// Last Update : 2009-08-17
|
||||
// Version : 1.0.008
|
||||
// Last Update : 2009-08-26
|
||||
// Version : 1.0.009
|
||||
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
|
||||
// ----------------------------------------------------------------------------
|
||||
// Copyright (C) 2008-2009 Nicola Asuni - Tecnick.com S.r.l.
|
||||
@ -219,6 +219,8 @@ class TCPDFBarcode {
|
||||
}
|
||||
default: {
|
||||
$this->barcode_array = false;
|
||||
$arrcode = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$this->barcode_array = $arrcode;
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
<div class="credit">
|
||||
<hr />
|
||||
Documentation generated on Wed, 26 Aug 2009 08:57:50 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
Documentation generated on Sat, 29 Aug 2009 14:54:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -245,7 +245,7 @@ $type)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_c128"></a>
|
||||
<h3>method barcode_c128 <span class="smalllinenumber">[line 797]</span></h3>
|
||||
<h3>method barcode_c128 <span class="smalllinenumber">[line 799]</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">
|
||||
@ -290,7 +290,7 @@ $type = 'B'])</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_codabar"></a>
|
||||
<h3>method barcode_codabar <span class="smalllinenumber">[line 1485]</span></h3>
|
||||
<h3>method barcode_codabar <span class="smalllinenumber">[line 1487]</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">
|
||||
@ -329,7 +329,7 @@ $code)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_code11"></a>
|
||||
<h3>method barcode_code11 <span class="smalllinenumber">[line 1541]</span></h3>
|
||||
<h3>method barcode_code11 <span class="smalllinenumber">[line 1543]</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">
|
||||
@ -368,7 +368,7 @@ $code)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_code39"></a>
|
||||
<h3>method barcode_code39 <span class="smalllinenumber">[line 235]</span></h3>
|
||||
<h3>method barcode_code39 <span class="smalllinenumber">[line 237]</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">
|
||||
@ -419,7 +419,7 @@ $checksum = false])</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_code93"></a>
|
||||
<h3>method barcode_code93 <span class="smalllinenumber">[line 404]</span></h3>
|
||||
<h3>method barcode_code93 <span class="smalllinenumber">[line 406]</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">
|
||||
@ -464,7 +464,7 @@ $checksum)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_eanext"></a>
|
||||
<h3>method barcode_eanext <span class="smalllinenumber">[line 1186]</span></h3>
|
||||
<h3>method barcode_eanext <span class="smalllinenumber">[line 1188]</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">
|
||||
@ -509,7 +509,7 @@ $len = 5])</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_eanupc"></a>
|
||||
<h3>method barcode_eanupc <span class="smalllinenumber">[line 993]</span></h3>
|
||||
<h3>method barcode_eanupc <span class="smalllinenumber">[line 995]</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">
|
||||
@ -554,7 +554,7 @@ $len = 13])</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_i25"></a>
|
||||
<h3>method barcode_i25 <span class="smalllinenumber">[line 733]</span></h3>
|
||||
<h3>method barcode_i25 <span class="smalllinenumber">[line 735]</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">
|
||||
@ -599,7 +599,7 @@ $checksum = false])</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_imb"></a>
|
||||
<h3>method barcode_imb <span class="smalllinenumber">[line 1722]</span></h3>
|
||||
<h3>method barcode_imb <span class="smalllinenumber">[line 1724]</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">
|
||||
@ -638,7 +638,7 @@ $code)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_msi"></a>
|
||||
<h3>method barcode_msi <span class="smalllinenumber">[line 603]</span></h3>
|
||||
<h3>method barcode_msi <span class="smalllinenumber">[line 605]</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">
|
||||
@ -683,7 +683,7 @@ $checksum = false])</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_pharmacode"></a>
|
||||
<h3>method barcode_pharmacode <span class="smalllinenumber">[line 1633]</span></h3>
|
||||
<h3>method barcode_pharmacode <span class="smalllinenumber">[line 1635]</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">
|
||||
@ -722,7 +722,7 @@ $code)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_pharmacode2t"></a>
|
||||
<h3>method barcode_pharmacode2t <span class="smalllinenumber">[line 1659]</span></h3>
|
||||
<h3>method barcode_pharmacode2t <span class="smalllinenumber">[line 1661]</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">
|
||||
@ -761,7 +761,7 @@ $code)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_postnet"></a>
|
||||
<h3>method barcode_postnet <span class="smalllinenumber">[line 1261]</span></h3>
|
||||
<h3>method barcode_postnet <span class="smalllinenumber">[line 1263]</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">
|
||||
@ -806,7 +806,7 @@ $planet = false])</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_rms4cc"></a>
|
||||
<h3>method barcode_rms4cc <span class="smalllinenumber">[line 1334]</span></h3>
|
||||
<h3>method barcode_rms4cc <span class="smalllinenumber">[line 1336]</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">
|
||||
@ -851,7 +851,7 @@ $kix = false])</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbarcode_s25"></a>
|
||||
<h3>method barcode_s25 <span class="smalllinenumber">[line 662]</span></h3>
|
||||
<h3>method barcode_s25 <span class="smalllinenumber">[line 664]</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">
|
||||
@ -896,7 +896,7 @@ $checksum = false])</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodbinseq_to_array"></a>
|
||||
<h3>method binseq_to_array <span class="smalllinenumber">[line 703]</span></h3>
|
||||
<h3>method binseq_to_array <span class="smalllinenumber">[line 705]</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">
|
||||
@ -941,7 +941,7 @@ $bararray)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodchecksum_code39"></a>
|
||||
<h3>method checksum_code39 <span class="smalllinenumber">[line 380]</span></h3>
|
||||
<h3>method checksum_code39 <span class="smalllinenumber">[line 382]</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">
|
||||
@ -980,7 +980,7 @@ $code)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodchecksum_code93"></a>
|
||||
<h3>method checksum_code93 <span class="smalllinenumber">[line 532]</span></h3>
|
||||
<h3>method checksum_code93 <span class="smalllinenumber">[line 534]</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">
|
||||
@ -1019,7 +1019,7 @@ $code)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodchecksum_s25"></a>
|
||||
<h3>method checksum_s25 <span class="smalllinenumber">[line 577]</span></h3>
|
||||
<h3>method checksum_s25 <span class="smalllinenumber">[line 579]</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">
|
||||
@ -1058,7 +1058,7 @@ $code)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methoddec_to_hex"></a>
|
||||
<h3>method dec_to_hex <span class="smalllinenumber">[line 1846]</span></h3>
|
||||
<h3>method dec_to_hex <span class="smalllinenumber">[line 1848]</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">
|
||||
@ -1097,7 +1097,7 @@ $number)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodencode_code39_ext"></a>
|
||||
<h3>method encode_code39_ext <span class="smalllinenumber">[line 329]</span></h3>
|
||||
<h3>method encode_code39_ext <span class="smalllinenumber">[line 331]</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">
|
||||
@ -1161,7 +1161,7 @@ $code)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodhex_to_dec"></a>
|
||||
<h3>method hex_to_dec <span class="smalllinenumber">[line 1870]</span></h3>
|
||||
<h3>method hex_to_dec <span class="smalllinenumber">[line 1872]</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">
|
||||
@ -1200,7 +1200,7 @@ $hex)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodimb_crc11fcs"></a>
|
||||
<h3>method imb_crc11fcs <span class="smalllinenumber">[line 1887]</span></h3>
|
||||
<h3>method imb_crc11fcs <span class="smalllinenumber">[line 1889]</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">
|
||||
@ -1239,7 +1239,7 @@ $code_arr)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodimb_reverse_us"></a>
|
||||
<h3>method imb_reverse_us <span class="smalllinenumber">[line 1923]</span></h3>
|
||||
<h3>method imb_reverse_us <span class="smalllinenumber">[line 1925]</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">
|
||||
@ -1278,7 +1278,7 @@ $num)</code>
|
||||
</div>
|
||||
<hr />
|
||||
<a name="methodimb_tables"></a>
|
||||
<h3>method imb_tables <span class="smalllinenumber">[line 1940]</span></h3>
|
||||
<h3>method imb_tables <span class="smalllinenumber">[line 1942]</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">
|
||||
@ -1368,7 +1368,7 @@ $type)</code>
|
||||
|
||||
<div class="credit">
|
||||
<hr />
|
||||
Documentation generated on Wed, 26 Aug 2009 08:57:50 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
Documentation generated on Sat, 29 Aug 2009 14:54:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
|
@ -96,7 +96,7 @@ PHP class to creates array representations for common 1D barcodes to be used wit
|
||||
|
||||
<div class="credit">
|
||||
<hr />
|
||||
Documentation generated on Wed, 26 Aug 2009 08:57:50 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
Documentation generated on Sat, 29 Aug 2009 14:54:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
|
@ -507,7 +507,7 @@ Configuration file for TCPDF.<br /><br /><br /><br />
|
||||
|
||||
<div class="credit">
|
||||
<hr />
|
||||
Documentation generated on Wed, 26 Aug 2009 08:57:57 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
Documentation generated on Sat, 29 Aug 2009 14:54:08 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
|
@ -88,7 +88,7 @@ Array of WEB safe colors.<br /><br /><br /><br />
|
||||
|
||||
<div class="credit">
|
||||
<hr />
|
||||
Documentation generated on Wed, 26 Aug 2009 08:57:51 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
Documentation generated on Sat, 29 Aug 2009 14:54:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
|
@ -65,7 +65,7 @@ Source Location: /tcpdf.php<br /><br />
|
||||
</div><br /><br />
|
||||
|
||||
<h2>Page Details:</h2>
|
||||
This is a PHP class for generating PDF documents without requiring external extensions.<br /><br /><br /><p>TCPDF project (http://www.tcpdf.org) was originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br /> <h3>TCPDF main features are:</h3> <ul><li>no external libraries are required for the basic functions;</li><li>supports all ISO page formats;</li><li>supports custom page formats, margins and units of measure;</li><li>supports UTF-8 Unicode and Right-To-Left languages;</li><li>supports TrueTypeUnicode, OpenTypeUnicode, TrueType, OpenType, Type1 and CID-0 fonts;</li><li>supports document encryption;</li><li>includes methods to publish some XHTML code;</li><li>includes graphic (geometric) and transformation methods;</li><li>includes Javascript and forms support;</li><li>includes a method to print various barcode formats: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS;</li><li>includes methods to set Bookmarks and print a Table of Content;</li><li>includes methods to move and delete pages;</li><li>includes methods for automatic page header and footer management;</li><li>supports automatic page break;</li><li>supports automatic page numbering and page groups;</li><li>supports automatic line break and text justification;</li><li>supports JPEG and PNG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImagMagick (http://www.imagemagick.org/www/formats.html)</li><li>supports stroke and clipping mode for text;</li><li>supports clipping masks;</li><li>supports Grayscale, RGB, CMYK, Spot Colors and Transparencies;</li><li>supports several annotations, including links, text and file attachments;</li><li>supports page compression (requires zlib extension);</li><li>supports text hyphenation.</li><li>supports transactions to UNDO commands.</li></ul> Tools to encode your unicode fonts are on fonts/utils directory.</p></p><br /><br /><br />
|
||||
This is a PHP class for generating PDF documents without requiring external extensions.<br /><br /><br /><p>TCPDF project (http://www.tcpdf.org) was originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.<br /> <h3>TCPDF main features are:</h3> <ul><li>no external libraries are required for the basic functions;</li><li>supports all ISO page formats;</li><li>supports custom page formats, margins and units of measure;</li><li>supports UTF-8 Unicode and Right-To-Left languages;</li><li>supports TrueTypeUnicode, OpenTypeUnicode, TrueType, OpenType, Type1 and CID-0 fonts;</li><li>supports document encryption;</li><li>includes methods to publish some XHTML code;</li><li>includes graphic (geometric) and transformation methods;</li><li>includes Javascript and forms support;</li><li>includes a method to print various barcode formats: CODE 39, ANSI MH10.8M-1983, USD-3, 3 of 9, CODE 93, USS-93, Standard 2 of 5, Interleaved 2 of 5, CODE 128 A/B/C, 2 and 5 Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI, POSTNET, PLANET, RMS4CC (Royal Mail 4-state Customer Code), CBC (Customer Bar Code), KIX (Klant index - Customer index), Intelligent Mail Barcode, Onecode, USPS-B-3200, CODABAR, CODE 11, PHARMACODE, PHARMACODE TWO-TRACKS;</li><li>includes methods to set Bookmarks and print a Table of Content;</li><li>includes methods to move and delete pages;</li><li>includes methods for automatic page header and footer management;</li><li>supports automatic page break;</li><li>supports automatic page numbering and page groups;</li><li>supports automatic line break and text justification;</li><li>supports JPEG and PNG images natively, all images supported by GD (GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM) and all images supported via ImagMagick (http://www.imagemagick.org/www/formats.html)</li><li>supports stroke and clipping mode for text;</li><li>supports clipping masks;</li><li>supports Grayscale, RGB, CMYK, Spot Colors and Transparencies;</li><li>supports several annotations, including links, text and file attachments;</li><li>supports page compression (requires zlib extension);</li><li>supports text hyphenation.</li><li>supports transactions to UNDO commands.</li><li>supports signature certifications.</li></ul> Tools to encode your unicode fonts are on fonts/utils directory.</p></p><br /><br /><br />
|
||||
<h4>Tags:</h4>
|
||||
<div class="tags">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
@ -73,7 +73,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.6.029</td>
|
||||
<td><b>version:</b> </td><td>4.6.030</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>copyright:</b> </td><td>2002-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com</td>
|
||||
@ -92,19 +92,19 @@ This is a PHP class for generating PDF documents without requiring external exte
|
||||
<br /><br />
|
||||
<h4>Includes:</h4>
|
||||
<div class="tags">
|
||||
require_once(dirname(__FILE__).'/config/tcpdf_config.php') [line 136]<br />
|
||||
main configuration file<br /><br />require_once(dirname(__FILE__).'/htmlcolors.php') [line 148]<br />
|
||||
html colors table<br /><br />require_once(dirname(__FILE__).'/unicode_data.php') [line 143]<br />
|
||||
require_once(dirname(__FILE__).'/config/tcpdf_config.php') [line 137]<br />
|
||||
main configuration file<br /><br />require_once(dirname(__FILE__).'/htmlcolors.php') [line 149]<br />
|
||||
html colors table<br /><br />require_once(dirname(__FILE__).'/unicode_data.php') [line 144]<br />
|
||||
unicode data<br /><br /></div>
|
||||
<br /><br />
|
||||
<br /><br />
|
||||
<hr />
|
||||
<a name="definePDF_PRODUCER"></a>
|
||||
<h3>PDF_PRODUCER <span class="smalllinenumber">[line 154]</span></h3>
|
||||
<h3>PDF_PRODUCER <span class="smalllinenumber">[line 155]</span></h3>
|
||||
<div class="tags">
|
||||
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
||||
<code>PDF_PRODUCER = 'TCPDF 4.6.029 (http://www.tcpdf.org)'</code>
|
||||
<code>PDF_PRODUCER = 'TCPDF 4.6.030 (http://www.tcpdf.org)'</code>
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
|
||||
@ -115,7 +115,7 @@ unicode data<br /><br /></div>
|
||||
|
||||
<div class="credit">
|
||||
<hr />
|
||||
Documentation generated on Wed, 26 Aug 2009 08:57:51 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
Documentation generated on Sat, 29 Aug 2009 14:54:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
|
@ -237,7 +237,7 @@ Unicode Include file for TCPDF.<br /><br /><br /><br />
|
||||
|
||||
<div class="credit">
|
||||
<hr />
|
||||
Documentation generated on Wed, 26 Aug 2009 08:57:57 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
Documentation generated on Sat, 29 Aug 2009 14:54:08 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
|
@ -1384,7 +1384,7 @@
|
||||
<a href="elementindex.html#top">top</a><br>
|
||||
<div class="credit">
|
||||
<hr />
|
||||
Documentation generated on Wed, 26 Aug 2009 08:57:50 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
Documentation generated on Sat, 29 Aug 2009 14:54:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
|
@ -1407,7 +1407,7 @@
|
||||
<a href="elementindex_com-tecnick-tcpdf.html#top">top</a><br>
|
||||
<div class="credit">
|
||||
<hr />
|
||||
Documentation generated on Wed, 26 Aug 2009 08:57:50 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
Documentation generated on Sat, 29 Aug 2009 14:54:01 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</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, 26 Aug 2009 08:57:57 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
Documentation generated on Sat, 29 Aug 2009 14:54:08 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
|
@ -58,7 +58,7 @@
|
||||
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.1</a><br />
|
||||
<div class="credit">
|
||||
<hr />
|
||||
Documentation generated on Wed, 26 Aug 2009 08:57:50 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
Documentation generated on Sat, 29 Aug 2009 14:54:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
|
@ -58,7 +58,7 @@
|
||||
This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.1</a><br />
|
||||
<div class="credit">
|
||||
<hr />
|
||||
Documentation generated on Wed, 26 Aug 2009 08:57:50 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
Documentation generated on Sat, 29 Aug 2009 14:54:02 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
</td>
|
||||
|
@ -2,7 +2,7 @@
|
||||
//============================================================+
|
||||
// File name : example_052.php
|
||||
// Begin : 2009-05-07
|
||||
// Last Update : 2009-08-21
|
||||
// Last Update : 2009-08-29
|
||||
//
|
||||
// Description : Example 052 for TCPDF class
|
||||
// Certification Signature (experimental)
|
||||
@ -89,8 +89,16 @@ $pdf->SetFont('helvetica', '', 10);
|
||||
// add a page
|
||||
$pdf->AddPage();
|
||||
|
||||
// print a line using Cell()
|
||||
$pdf->Cell(0, 12, 'Signed Document', 1, 1, 'C');
|
||||
// print a line of text
|
||||
|
||||
$text = 'This is a <b color="#FF0000">digitally signed document</b> using the default (example) <b>tcpdf.crt</b> certificate.<br />
|
||||
To validate this signature you have to load the <b>tcpdf.fdf</b> on the Arobat Reader to add the certificate to List of Trusted Identities.<br />
|
||||
<br />
|
||||
For more information check the source code of this example and the source code documentation for the <i>setSignature()</i> method.<br />
|
||||
<br />
|
||||
<a href="http://www.tcpdf.org">www.tcpdf.org</a>.';
|
||||
|
||||
$pdf->writeHTML($text, true, 0, true, 0);
|
||||
|
||||
// ---------------------------------------------------------
|
||||
|
||||
|
21
tcpdf.php
21
tcpdf.php
@ -2,9 +2,9 @@
|
||||
//============================================================+
|
||||
// File name : tcpdf.php
|
||||
// Begin : 2002-08-03
|
||||
// Last Update : 2009-08-26
|
||||
// Last Update : 2009-08-29
|
||||
// Author : Nicola Asuni - info@tecnick.com - http://www.tcpdf.org
|
||||
// Version : 4.6.029
|
||||
// Version : 4.6.030
|
||||
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
|
||||
// ----------------------------------------------------------------------------
|
||||
// Copyright (C) 2002-2009 Nicola Asuni - Tecnick.com S.r.l.
|
||||
@ -119,6 +119,7 @@
|
||||
* <li>supports page compression (requires zlib extension);</li>
|
||||
* <li>supports text hyphenation.</li>
|
||||
* <li>supports transactions to UNDO commands.</li>
|
||||
* <li>supports signature certifications.</li>
|
||||
* </ul>
|
||||
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
|
||||
* @package com.tecnick.tcpdf
|
||||
@ -127,7 +128,7 @@
|
||||
* @copyright 2002-2009 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
|
||||
* @link http://www.tcpdf.org
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL
|
||||
* @version 4.6.029
|
||||
* @version 4.6.030
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -151,14 +152,14 @@ if (!class_exists('TCPDF', false)) {
|
||||
/**
|
||||
* define default PDF document producer
|
||||
*/
|
||||
define('PDF_PRODUCER', 'TCPDF 4.6.029 (http://www.tcpdf.org)');
|
||||
define('PDF_PRODUCER', 'TCPDF 4.6.030 (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 4.6.029
|
||||
* @version 4.6.030
|
||||
* @author Nicola Asuni - info@tecnick.com
|
||||
* @link http://www.tcpdf.org
|
||||
* @license http://www.gnu.org/copyleft/lesser.html LGPL
|
||||
@ -10606,15 +10607,13 @@ if (!class_exists('TCPDF', false)) {
|
||||
if (!isset($style['border'])) {
|
||||
$style['border'] = false;
|
||||
}
|
||||
$fontsize = 0;
|
||||
if (!isset($style['text'])) {
|
||||
$style['text'] = false;
|
||||
$fontsize = 0;
|
||||
}
|
||||
if ($style['text'] AND isset($style['font'])) {
|
||||
if (isset($style['fontsize'])) {
|
||||
$fontsize = $style['fontsize'];
|
||||
} else {
|
||||
$fontsize = 0;
|
||||
}
|
||||
$this->SetFont($style['font'], '', $fontsize);
|
||||
}
|
||||
@ -10698,7 +10697,7 @@ if (!class_exists('TCPDF', false)) {
|
||||
$this->rtl = false;
|
||||
// print background color
|
||||
if ($style['bgcolor']) {
|
||||
$this->Rect($xpos_rect, $y, $fbw, $h, 'DF', '', $style['bgcolor']);
|
||||
$this->Rect($xpos_rect, $y, $fbw, $h, $style['border'] ? 'DF' : 'F', '', $style['bgcolor']);
|
||||
} elseif ($style['border']) {
|
||||
$this->Rect($xpos_rect, $y, $fbw, $h, 'D');
|
||||
}
|
||||
@ -10893,7 +10892,7 @@ if (!class_exists('TCPDF', false)) {
|
||||
$this->rtl = false;
|
||||
// print background color
|
||||
if ($style['bgcolor']) {
|
||||
$this->Rect($x, $y, $w, $h, 'DF', '', $style['bgcolor']);
|
||||
$this->Rect($x, $y, $w, $h, $style['border'] ? 'DF' : 'F', '', $style['bgcolor']);
|
||||
} elseif ($style['border']) {
|
||||
$this->Rect($x, $y, $w, $h, 'D');
|
||||
}
|
||||
@ -11993,7 +11992,7 @@ if (!class_exists('TCPDF', false)) {
|
||||
$colspan = $dom[$key]['attribute']['colspan'];
|
||||
$wtmp = ($colspan * ($table_width / $dom[$table_el]['cols']));
|
||||
if (isset($dom[$key]['width'])) {
|
||||
$cellw = $this->getHTMLUnitToUnits($dom[$key]['width'], $wtmp, 'px');
|
||||
$cellw = $this->getHTMLUnitToUnits($dom[$key]['width'], $table_width, 'px');
|
||||
} else {
|
||||
$cellw = $wtmp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user