forked from tecnickcom/TCPDF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- The constant K_TCPDF_THROW_EXCEPTION_ERROR is now set to false in the default configuration file. - An issue with the _destroy() method was fixed.
- Loading branch information
1 parent
40662da
commit 9e55652
Showing
5 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
//============================================================+ | ||
// File name : tcpdf_config.php | ||
// Begin : 2004-06-11 | ||
// Last Update : 2014-09-02 | ||
// Last Update : 2014-12-11 | ||
// | ||
// Description : Configuration file for TCPDF. | ||
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - [email protected] | ||
|
@@ -210,7 +210,7 @@ | |
* If true allows to call TCPDF methods using HTML syntax | ||
* IMPORTANT: For security reason, disable this feature if you are printing user HTML content. | ||
*/ | ||
define('K_TCPDF_CALLS_IN_HTML', true); | ||
define('K_TCPDF_CALLS_IN_HTML', false); | ||
|
||
/** | ||
* If true and PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?php | ||
//============================================================+ | ||
// File name : tcpdf.php | ||
// Version : 6.2.0 | ||
// Version : 6.2.1 | ||
// Begin : 2002-08-03 | ||
// Last Update : 2014-12-10 | ||
// Last Update : 2014-12-18 | ||
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - [email protected] | ||
// License : GNU-LGPL v3 (http://www.gnu.org/copyleft/lesser.html) | ||
// ------------------------------------------------------------------- | ||
|
@@ -104,7 +104,7 @@ | |
* Tools to encode your unicode fonts are on fonts/utils directory.</p> | ||
* @package com.tecnick.tcpdf | ||
* @author Nicola Asuni | ||
* @version 6.2.0 | ||
* @version 6.2.1 | ||
*/ | ||
|
||
// TCPDF configuration | ||
|
@@ -128,7 +128,7 @@ | |
* 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 6.2.0 | ||
* @version 6.2.1 | ||
* @author Nicola Asuni - [email protected] | ||
*/ | ||
class TCPDF { | ||
|
@@ -7745,7 +7745,10 @@ public function Output($name='doc.pdf', $dest='I') { | |
public function _destroy($destroyall=false, $preserve_objcopy=false) { | ||
if ($destroyall AND !$preserve_objcopy) { | ||
// remove all temporary files | ||
array_map('unlink', glob(K_PATH_CACHE.'__tcpdf_'.$this->file_id.'_*')); | ||
$tmpfiles = glob(K_PATH_CACHE.'__tcpdf_'.$this->file_id.'_*'); | ||
if (!empty($tmpfiles)) { | ||
array_map('unlink', $tmpfiles); | ||
} | ||
} | ||
$preserve = array( | ||
'file_id', | ||
|