mirror of
https://github.com/vdm-io/tcpdf.git
synced 2024-06-01 05:40:47 +00:00
5.9.1998 (2012-11-29)
- Internal setImageBuffer() method was improved.
This commit is contained in:
parent
aac8873f9d
commit
7a65d321c3
|
@ -1,3 +1,6 @@
|
||||||
|
5.9.1998 (2012-11-29)
|
||||||
|
- Internal setImageBuffer() method was improved.
|
||||||
|
|
||||||
5.9.198 (2012-11-19)
|
5.9.198 (2012-11-19)
|
||||||
- Datamatrix EDIFACT mode was fixed.
|
- Datamatrix EDIFACT mode was fixed.
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
|
||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
|
|
||||||
Name: TCPDF
|
Name: TCPDF
|
||||||
Version: 5.9.198
|
Version: 5.9.199
|
||||||
Release date: 2012-11-19
|
Release date: 2012-11-29
|
||||||
Author: Nicola Asuni
|
Author: Nicola Asuni
|
||||||
|
|
||||||
Copyright (c) 2002-2012:
|
Copyright (c) 2002-2012:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tecnick.com/tcpdf",
|
"name": "tecnick.com/tcpdf",
|
||||||
"version": "5.9.198",
|
"version": "5.9.199",
|
||||||
"homepage": "http://www.tcpdf.org/",
|
"homepage": "http://www.tcpdf.org/",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"description": "TCPDF is a PHP class for generating PDF documents.",
|
"description": "TCPDF is a PHP class for generating PDF documents.",
|
||||||
|
|
27
tcpdf.php
27
tcpdf.php
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
//============================================================+
|
//============================================================+
|
||||||
// File name : tcpdf.php
|
// File name : tcpdf.php
|
||||||
// Version : 5.9.198
|
// Version : 5.9.199
|
||||||
// Begin : 2002-08-03
|
// Begin : 2002-08-03
|
||||||
// Last Update : 2012-11-19
|
// Last Update : 2012-11-29
|
||||||
// Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants, GU12 4RQ, UK - www.tecnick.com - info@tecnick.com
|
// 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
|
// License : http://www.tecnick.com/pagefiles/tcpdf/LICENSE.TXT GNU-LGPLv3
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
@ -139,7 +139,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.198
|
* @version 5.9.199
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// 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.
|
||||||
|
@ -151,7 +151,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.198
|
* @version 5.9.199
|
||||||
* @author Nicola Asuni - info@tecnick.com
|
* @author Nicola Asuni - info@tecnick.com
|
||||||
*/
|
*/
|
||||||
class TCPDF {
|
class TCPDF {
|
||||||
|
@ -162,7 +162,7 @@ class TCPDF {
|
||||||
* Current TCPDF version.
|
* Current TCPDF version.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
private $tcpdf_version = '5.9.198';
|
private $tcpdf_version = '5.9.199';
|
||||||
|
|
||||||
// Protected properties
|
// Protected properties
|
||||||
|
|
||||||
|
@ -8202,10 +8202,6 @@ class TCPDF {
|
||||||
// force grayscale
|
// force grayscale
|
||||||
$info['cs'] = 'DeviceGray';
|
$info['cs'] = 'DeviceGray';
|
||||||
}
|
}
|
||||||
$info['i'] = $this->numimages;
|
|
||||||
if (!in_array($file, $this->imagekeys)) {
|
|
||||||
++$info['i'];
|
|
||||||
}
|
|
||||||
if ($imgmask !== false) {
|
if ($imgmask !== false) {
|
||||||
$info['masked'] = $imgmask;
|
$info['masked'] = $imgmask;
|
||||||
}
|
}
|
||||||
|
@ -8215,7 +8211,7 @@ class TCPDF {
|
||||||
// array of alternative images
|
// array of alternative images
|
||||||
$info['altimgs'] = $altimgs;
|
$info['altimgs'] = $altimgs;
|
||||||
// add image to document
|
// add image to document
|
||||||
$this->setImageBuffer($file, $info);
|
$info['i'] = $this->setImageBuffer($file, $info);
|
||||||
}
|
}
|
||||||
// set alignment
|
// set alignment
|
||||||
$this->img_rb_y = $y + $h;
|
$this->img_rb_y = $y + $h;
|
||||||
|
@ -25981,10 +25977,16 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
||||||
* Set image buffer content.
|
* Set image buffer content.
|
||||||
* @param $image (string) image key
|
* @param $image (string) image key
|
||||||
* @param $data (array) image data
|
* @param $data (array) image data
|
||||||
|
* @return int image index number
|
||||||
* @protected
|
* @protected
|
||||||
* @since 4.5.000 (2008-12-31)
|
* @since 4.5.000 (2008-12-31)
|
||||||
*/
|
*/
|
||||||
protected function setImageBuffer($image, $data) {
|
protected function setImageBuffer($image, $data) {
|
||||||
|
if (($data['i'] = array_search($image, $this->imagekeys)) === FALSE) {
|
||||||
|
$this->imagekeys[$this->numimages] = $image;
|
||||||
|
$data['i'] = $this->numimages;
|
||||||
|
++$this->numimages;
|
||||||
|
}
|
||||||
if ($this->diskcache) {
|
if ($this->diskcache) {
|
||||||
if (!isset($this->images[$image])) {
|
if (!isset($this->images[$image])) {
|
||||||
$this->images[$image] = $this->getObjFilename('image'.$image);
|
$this->images[$image] = $this->getObjFilename('image'.$image);
|
||||||
|
@ -25993,10 +25995,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value:
|
||||||
} else {
|
} else {
|
||||||
$this->images[$image] = $data;
|
$this->images[$image] = $data;
|
||||||
}
|
}
|
||||||
if (!in_array($image, $this->imagekeys)) {
|
return $data['i'];
|
||||||
$this->imagekeys[] = $image;
|
|
||||||
++$this->numimages;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user