32
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-12-23 17:08:53 +00:00
This commit is contained in:
nicolaasuni 2011-03-15 17:59:04 +01:00
parent 476d1bcb10
commit 5f7712d1b1
3 changed files with 18 additions and 8 deletions

View File

@ -1,3 +1,7 @@
5.9.061 (2011-03-15)
- Bug item #3213488 "wrong function call in function Write" was fixed.
- Bug item #3203007 "list element with black background" was fixed.
5.9.060 (2011-03-08) 5.9.060 (2011-03-08)
- addTOC() method was fixed for text alignment problems. - addTOC() method was fixed for text alignment problems.

View File

@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------ ------------------------------------------------------------
Name: TCPDF Name: TCPDF
Version: 5.9.060 Version: 5.9.061
Release date: 2011-03-08 Release date: 2011-03-15
Author: Nicola Asuni Author: Nicola Asuni
Copyright (c) 2002-2011: Copyright (c) 2002-2011:

View File

@ -1,9 +1,9 @@
<?php <?php
//============================================================+ //============================================================+
// File name : tcpdf.php // File name : tcpdf.php
// Version : 5.9.060 // Version : 5.9.061
// Begin : 2002-08-03 // Begin : 2002-08-03
// Last Update : 2011-03-08 // Last Update : 2011-03-15
// Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com S.r.l - Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
// License : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3 + YOU CAN'T REMOVE ANY TCPDF COPYRIGHT NOTICE OR LINK FROM THE GENERATED PDF DOCUMENTS. // License : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3 + YOU CAN'T REMOVE ANY TCPDF COPYRIGHT NOTICE OR LINK FROM THE GENERATED PDF DOCUMENTS.
// ------------------------------------------------------------------- // -------------------------------------------------------------------
@ -134,7 +134,7 @@
* Tools to encode your unicode fonts are on fonts/utils directory.</p> * Tools to encode your unicode fonts are on fonts/utils directory.</p>
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @author Nicola Asuni * @author Nicola Asuni
* @version 5.9.060 * @version 5.9.061
*/ */
// Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file. // Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file.
@ -146,7 +146,7 @@ require_once(dirname(__FILE__).'/config/tcpdf_config.php');
* 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> * 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>
* @package com.tecnick.tcpdf * @package com.tecnick.tcpdf
* @brief PHP class for generating PDF documents without requiring external extensions. * @brief PHP class for generating PDF documents without requiring external extensions.
* @version 5.9.060 * @version 5.9.061
* @author Nicola Asuni - info@tecnick.com * @author Nicola Asuni - info@tecnick.com
*/ */
class TCPDF { class TCPDF {
@ -157,7 +157,7 @@ class TCPDF {
* Current TCPDF version. * Current TCPDF version.
* @private * @private
*/ */
private $tcpdf_version = '5.9.060'; private $tcpdf_version = '5.9.061';
// Protected properties // Protected properties
@ -6604,7 +6604,7 @@ class TCPDF {
$rtlmode = false; $rtlmode = false;
} }
// get a char width // get a char width
$chrwidth = $this->GetCharWidth('.'); $chrwidth = $this->GetCharWidth(46); // dot character
// get array of unicode values // get array of unicode values
$chars = $this->UTF8StringToArray($s); $chars = $this->UTF8StringToArray($s);
// get array of chars // get array of chars
@ -22370,7 +22370,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
protected function putHtmlListBullet($listdepth, $listtype='', $size=10) { protected function putHtmlListBullet($listdepth, $listtype='', $size=10) {
$size /= $this->k; $size /= $this->k;
$fill = ''; $fill = '';
$bgcolor = $this->bgcolor;
$color = $this->fgcolor; $color = $this->fgcolor;
$strokecolor = $this->strokecolor;
$width = 0; $width = 0;
$textitem = ''; $textitem = '';
$tmpx = $this->x; $tmpx = $this->x;
@ -22542,6 +22544,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
} }
$this->x = $tmpx; $this->x = $tmpx;
$this->lispacer = '^'; $this->lispacer = '^';
// restore colors
$this->SetFillColorArray($bgcolor);
$this->SetDrawColorArray($strokecolor);
$this->SettextColorArray($color);
} }
/** /**