32
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-11-28 23:26:26 +00:00

6.0.022 (2013-08-02)

- fixing initialization problem for signature_appearance property.
This commit is contained in:
nicolaasuni 2013-08-02 07:48:05 +01:00
parent 94bfcb9bb4
commit f7ec606860
5 changed files with 14 additions and 12 deletions

View File

@ -1,3 +1,6 @@
6.0.022 (2013-08-02)
- fixing initialization problem for signature_appearance property.
6.0.021 (2013-07-18) 6.0.021 (2013-07-18)
- The bug caused by the preg_split function on some PHP 5.2.x versions was fixed. - The bug caused by the preg_split function on some PHP 5.2.x versions was fixed.

View File

@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------ ------------------------------------------------------------
Name: TCPDF Name: TCPDF
Version: 6.0.021 Version: 6.0.022
Release date: 2013-07-18 Release date: 2013-08-02
Author: Nicola Asuni Author: Nicola Asuni
Copyright (c) 2002-2013: Copyright (c) 2002-2013:

View File

@ -1,6 +1,6 @@
{ {
"name": "tecnick.com/tcpdf", "name": "tecnick.com/tcpdf",
"version": "6.0.021", "version": "6.0.022",
"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.",

View File

@ -55,7 +55,7 @@ class TCPDF_STATIC {
* Current TCPDF version. * Current TCPDF version.
* @private static * @private static
*/ */
private static $tcpdf_version = '6.0.021'; private static $tcpdf_version = '6.0.022';
/** /**
* String alias for total number of pages. * String alias for total number of pages.
@ -2733,7 +2733,7 @@ class TCPDF_STATIC {
* @param $flags (int) The flags as specified on the preg_split PHP function. * @param $flags (int) The flags as specified on the preg_split PHP function.
* @return Returns an array containing substrings of subject split along boundaries matched by pattern.modifier * @return Returns an array containing substrings of subject split along boundaries matched by pattern.modifier
* @author Nicola Asuni * @author Nicola Asuni
* @since 6.0.021 * @since 6.0.022
* @public static * @public static
*/ */
public static function pregSplit($pattern, $modifiers, $subject, $limit=NULL, $flags=NULL) { public static function pregSplit($pattern, $modifiers, $subject, $limit=NULL, $flags=NULL) {

View File

@ -1,9 +1,9 @@
<?php <?php
//============================================================+ //============================================================+
// File name : tcpdf.php // File name : tcpdf.php
// Version : 6.0.021 // Version : 6.0.022
// Begin : 2002-08-03 // Begin : 2002-08-03
// Last Update : 2013-07-18 // Last Update : 2013-08-02
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com // Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html) // License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html)
// ------------------------------------------------------------------- // -------------------------------------------------------------------
@ -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 6.0.021 * @version 6.0.022
*/ */
// TCPDF configuration // TCPDF configuration
@ -163,7 +163,7 @@ require_once(dirname(__FILE__).'/include/tcpdf_static.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 6.0.021 * @version 6.0.022
* @author Nicola Asuni - info@tecnick.com * @author Nicola Asuni - info@tecnick.com
*/ */
class TCPDF { class TCPDF {
@ -1973,7 +1973,7 @@ class TCPDF {
$this->ur['signature'] = '/Modify'; $this->ur['signature'] = '/Modify';
$this->ur['ef'] = '/Create/Delete/Modify/Import'; $this->ur['ef'] = '/Create/Delete/Modify/Import';
$this->ur['formex'] = ''; $this->ur['formex'] = '';
$this->signature_appearance = array('page' => 1, 'rect' => '0 0 0 0'); $this->signature_appearance = array('page' => 1, 'rect' => '0 0 0 0', 'name' => 'Signature');
$this->empty_signature_appearance = array(); $this->empty_signature_appearance = array();
// set default JPEG quality // set default JPEG quality
$this->jpeg_quality = 75; $this->jpeg_quality = 75;
@ -2925,9 +2925,8 @@ class TCPDF {
public function Error($msg) { public function Error($msg) {
// unset all class variables // unset all class variables
$this->_destroy(true); $this->_destroy(true);
$phpmainver = PHP_VERSION;
// exit program and print error // exit program and print error
if ((intval($phpmainver[0]) < 5) OR !defined('K_TCPDF_THROW_EXCEPTION_ERROR') OR !K_TCPDF_THROW_EXCEPTION_ERROR) { if (!K_TCPDF_THROW_EXCEPTION_ERROR) {
die('<strong>TCPDF ERROR: </strong>'.$msg); die('<strong>TCPDF ERROR: </strong>'.$msg);
} else { } else {
throw new Exception('TCPDF ERROR: '.$msg); throw new Exception('TCPDF ERROR: '.$msg);