30
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-06-04 23:10:46 +00:00
This commit is contained in:
nicolaasuni 2009-04-21 12:12:06 +02:00
parent 24878f9379
commit 3a42a876e7
16 changed files with 37 additions and 33 deletions

View File

@ -1,3 +1,6 @@
4.6.003 (2009-04-21)
- The caching mechanism of the UTF8StringToArray() method was fixed.
4.6.002 (2009-04-20)
- Documentation of rollbackTransaction() method was fixed.
- The setImageScale() and getImageScale() methods now set and get the adjusting parameter used by pixelsToUnits() method.

View File

@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
Version: 4.6.002
Release date: 2009-04-20
Version: 4.6.003
Release date: 2009-04-21
Author: Nicola Asuni
Copyright (c) 2001-2009:

View File

@ -45,7 +45,7 @@
<div class="credit">
<hr />
Documentation generated on Mon, 20 Apr 2009 18:18:31 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:53 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
</div>
</td></tr></table>
</td>

View File

@ -74,7 +74,7 @@ Source Location: /tcpdf.php<br /><br />
<h4>Version:</h4>
<ul>
<li>4.6.002</li>
<li>4.6.003</li>
</ul>
@ -581,7 +581,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.6.002</td>
<td><b>version:</b>&nbsp;&nbsp;</td><td>4.6.003</td>
</tr>
<tr>
<td><b>link:</b>&nbsp;&nbsp;</td><td><a href="http://www.tcpdf.org">http://www.tcpdf.org</a></td>
@ -6900,7 +6900,7 @@ $afinish:)</code>
</div>
<hr />
<a name="methodempty_string"></a>
<h3>method empty_string <span class="smalllinenumber">[line 13561]</span></h3>
<h3>method empty_string <span class="smalllinenumber">[line 13562]</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">
@ -10305,7 +10305,7 @@ $maxh = 0])</code>
</div>
<hr />
<a name="methodobjclone"></a>
<h3>method objclone <span class="smalllinenumber">[line 13550]</span></h3>
<h3>method objclone <span class="smalllinenumber">[line 13551]</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">
@ -18903,7 +18903,7 @@ $file)</code>
<div class="credit">
<hr />
Documentation generated on Mon, 20 Apr 2009 18:18:31 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:54 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
</div>
</td></tr></table>
</td>

View File

@ -1368,7 +1368,7 @@ $type)</code>
<div class="credit">
<hr />
Documentation generated on Mon, 20 Apr 2009 18:18:31 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:53 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
</div>
</td></tr></table>
</td>

View File

@ -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 Mon, 20 Apr 2009 18:18:31 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:53 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
</div>
</td></tr></table>
</td>

View File

@ -507,7 +507,7 @@ Configuration file for TCPDF.<br /><br /><br /><br />
<div class="credit">
<hr />
Documentation generated on Mon, 20 Apr 2009 18:18:37 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:59 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
</div>
</td></tr></table>
</td>

View File

@ -88,7 +88,7 @@ Array of WEB safe colors.<br /><br /><br /><br />
<div class="credit">
<hr />
Documentation generated on Mon, 20 Apr 2009 18:18:31 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:54 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
</div>
</td></tr></table>
</td>

View File

@ -73,7 +73,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.6.002</td>
<td><b>version:</b>&nbsp;&nbsp;</td><td>4.6.003</td>
</tr>
<tr>
<td><b>copyright:</b>&nbsp;&nbsp;</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>
@ -104,7 +104,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.6.002 (http://www.tcpdf.org)'</code>
<code>PDF_PRODUCER = 'TCPDF 4.6.003 (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 Mon, 20 Apr 2009 18:18:31 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:54 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
</div>
</td></tr></table>
</td>

View File

@ -237,7 +237,7 @@ Unicode Include file for TCPDF.<br /><br /><br /><br />
<div class="credit">
<hr />
Documentation generated on Mon, 20 Apr 2009 18:18:37 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:59 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
</div>
</td></tr></table>
</td>

View File

@ -1350,7 +1350,7 @@
<a href="elementindex.html#top">top</a><br>
<div class="credit">
<hr />
Documentation generated on Mon, 20 Apr 2009 18:18:31 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:53 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
</div>
</td></tr></table>
</td>

View File

@ -1373,7 +1373,7 @@
<a href="elementindex_com-tecnick-tcpdf.html#top">top</a><br>
<div class="credit">
<hr />
Documentation generated on Mon, 20 Apr 2009 18:18:30 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:53 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</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 Mon, 20 Apr 2009 18:18:37 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:59 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
</div>
</td></tr></table>
</td>

View File

@ -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 Mon, 20 Apr 2009 18:18:31 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:53 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
</div>
</td></tr></table>
</td>

View File

@ -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 Mon, 20 Apr 2009 18:18:31 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
Documentation generated on Tue, 21 Apr 2009 12:11:53 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
</div>
</td></tr></table>
</td>

View File

@ -2,9 +2,9 @@
//============================================================+
// File name : tcpdf.php
// Begin : 2002-08-03
// Last Update : 2009-04-20
// Last Update : 2009-04-21
// Author : Nicola Asuni - info@tecnick.com - http://www.tcpdf.org
// Version : 4.6.002
// Version : 4.6.003
// License : GNU LGPL (http://www.gnu.org/copyleft/lesser.html)
// ----------------------------------------------------------------------------
// Copyright (C) 2002-2009 Nicola Asuni - Tecnick.com S.r.l.
@ -122,7 +122,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.002
* @version 4.6.003
*/
/**
@ -146,14 +146,14 @@ if (!class_exists('TCPDF', false)) {
/**
* define default PDF document producer
*/
define('PDF_PRODUCER', 'TCPDF 4.6.002 (http://www.tcpdf.org)');
define('PDF_PRODUCER', 'TCPDF 4.6.003 (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.002
* @version 4.6.003
* @author Nicola Asuni - info@tecnick.com
* @link http://www.tcpdf.org
* @license http://www.gnu.org/copyleft/lesser.html LGPL
@ -6495,9 +6495,9 @@ if (!class_exists('TCPDF', false)) {
* @since 1.53.0.TC005 (2005-01-05)
*/
protected function UTF8StringToArray($str) {
if (isset($this->cache_UTF8StringToArray[$str])) {
if (isset($this->cache_UTF8StringToArray['_'.$str])) {
// return cached value
return($this->cache_UTF8StringToArray[$str]);
return($this->cache_UTF8StringToArray['_'.$str]);
}
// check cache size
if ($this->cache_size_UTF8StringToArray >= $this->cache_maxsize_UTF8StringToArray) {
@ -6513,7 +6513,7 @@ if (!class_exists('TCPDF', false)) {
$strarr[] = ord($str{$i});
}
// insert new value on cache
$this->cache_UTF8StringToArray[$str] = $strarr;
$this->cache_UTF8StringToArray['_'.$str] = $strarr;
return $strarr;
}
$unicode = array(); // array containing unicode values
@ -6571,7 +6571,7 @@ if (!class_exists('TCPDF', false)) {
}
}
// insert new value on cache
$this->cache_UTF8StringToArray[$str] = $unicode;
$this->cache_UTF8StringToArray['_'.$str] = $unicode;
return $unicode;
}
@ -12996,10 +12996,10 @@ if (!class_exists('TCPDF', false)) {
fclose($f);
}
// update file lenght (needed for transactions)
if (!isset($this->cache_file_lenght[$filename])) {
$this->cache_file_lenght[$filename] = strlen($data);
if (!isset($this->cache_file_lenght['_'.$filename])) {
$this->cache_file_lenght['_'.$filename] = strlen($data);
} else {
$this->cache_file_lenght[$filename] += strlen($data);
$this->cache_file_lenght['_'.$filename] += strlen($data);
}
}
@ -13530,6 +13530,7 @@ if (!class_exists('TCPDF', false)) {
if (isset($this->objcopy->diskcache) AND $this->objcopy->diskcache) {
// truncate files to previous values
foreach ($this->objcopy->cache_file_lenght as $file => $lenght) {
$file = substr($file, 1);
$handle = fopen($file, 'r+');
ftruncate($handle, $lenght);
}