mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-12-23 17:08:53 +00:00
5.9.146
This commit is contained in:
parent
9c88c0ba0b
commit
b83d9938d2
@ -1,3 +1,7 @@
|
||||
5.9.146 (2012-02-12)
|
||||
- Bug item #3486880 "$filehash undefine error" was fixed.
|
||||
- The default font is now the one specified at PDF_FONT_NAME_MAIN constant.
|
||||
|
||||
5.9.145 (2012-01-28)
|
||||
- Japanese language file was added.
|
||||
- TCPDF license and README.TXT files were updated.
|
||||
|
@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
|
||||
------------------------------------------------------------
|
||||
|
||||
Name: TCPDF
|
||||
Version: 5.9.145
|
||||
Release date: 2012-01-28
|
||||
Version: 5.9.146
|
||||
Release date: 2012-02-12
|
||||
Author: Nicola Asuni
|
||||
|
||||
Copyright (c) 2002-2012:
|
||||
|
18
tcpdf.php
18
tcpdf.php
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
//============================================================+
|
||||
// File name : tcpdf.php
|
||||
// Version : 5.9.145
|
||||
// Version : 5.9.146
|
||||
// Begin : 2002-08-03
|
||||
// Last Update : 2012-01-28
|
||||
// Last Update : 2012-02-12
|
||||
// Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - info@tecnick.com
|
||||
// License : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3
|
||||
// -------------------------------------------------------------------
|
||||
@ -137,7 +137,7 @@
|
||||
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
|
||||
* @package com.tecnick.tcpdf
|
||||
* @author Nicola Asuni
|
||||
* @version 5.9.145
|
||||
* @version 5.9.146
|
||||
*/
|
||||
|
||||
// Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file.
|
||||
@ -149,7 +149,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>
|
||||
* @package com.tecnick.tcpdf
|
||||
* @brief PHP class for generating PDF documents without requiring external extensions.
|
||||
* @version 5.9.145
|
||||
* @version 5.9.146
|
||||
* @author Nicola Asuni - info@tecnick.com
|
||||
*/
|
||||
class TCPDF {
|
||||
@ -160,7 +160,7 @@ class TCPDF {
|
||||
* Current TCPDF version.
|
||||
* @private
|
||||
*/
|
||||
private $tcpdf_version = '5.9.145';
|
||||
private $tcpdf_version = '5.9.146';
|
||||
|
||||
// Protected properties
|
||||
|
||||
@ -1896,7 +1896,7 @@ class TCPDF {
|
||||
$this->gradients = array();
|
||||
$this->InFooter = false;
|
||||
$this->lasth = 0;
|
||||
$this->FontFamily = 'helvetica';
|
||||
$this->FontFamily = defined('PDF_FONT_NAME_MAIN')?PDF_FONT_NAME_MAIN:'helvetica';
|
||||
$this->FontStyle = '';
|
||||
$this->FontSizePt = 12;
|
||||
$this->underline = false;
|
||||
@ -3751,7 +3751,8 @@ class TCPDF {
|
||||
$this->y = $this->h - (1 / $this->k);
|
||||
$this->lMargin = 0;
|
||||
$this->_out('q');
|
||||
$this->SetFont('helvetica', '', 1);
|
||||
$font = defined('PDF_FONT_NAME_MAIN')?PDF_FONT_NAME_MAIN:'helvetica';
|
||||
$this->SetFont($font, '', 1);
|
||||
$this->setTextRenderingMode(0, false, false);
|
||||
$msg = "\x50\x6f\x77\x65\x72\x65\x64\x20\x62\x79\x20\x54\x43\x50\x44\x46\x20\x28\x77\x77\x77\x2e\x74\x63\x70\x64\x66\x2e\x6f\x72\x67\x29";
|
||||
$lnk = "\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x74\x63\x70\x64\x66\x2e\x6f\x72\x67";
|
||||
@ -7579,6 +7580,8 @@ class TCPDF {
|
||||
$this->Error('[Image] Unable to get image: '.$file);
|
||||
}
|
||||
}
|
||||
// file hash
|
||||
$filehash = md5($file);
|
||||
// get original image width and height in pixels
|
||||
list($pixw, $pixh) = $imsize;
|
||||
// calculate image width and height on document
|
||||
@ -7677,7 +7680,6 @@ class TCPDF {
|
||||
}
|
||||
} elseif (substr($file, 0, -34) != K_PATH_CACHE.'msk') {
|
||||
// check for cached images with alpha channel
|
||||
$filehash = md5($file);
|
||||
$tempfile_plain = K_PATH_CACHE.'mskp_'.$filehash;
|
||||
$tempfile_alpha = K_PATH_CACHE.'mska_'.$filehash;
|
||||
if (in_array($tempfile_plain, $this->imagekeys)) {
|
||||
|
Loading…
Reference in New Issue
Block a user