Skip to content

Commit e1e2ade

Browse files
committed
Refactor setCompression
1 parent 67443ee commit e1e2ade

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

CHANGELOG.TXT

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
6.11.2 (2026-03-03)
2+
- Refactor setCompression().
3+
14
6.11.1 (2026-03-03)
25
- Remove debug line preventing compression.
36

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.11.1
1+
6.11.2

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"barcodes"
1313
],
1414
"homepage": "http://www.tcpdf.org/",
15-
"version": "6.11.1",
15+
"version": "6.11.2",
1616
"license": "LGPL-3.0-or-later",
1717
"authors": [
1818
{

include/tcpdf_static.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class TCPDF_STATIC {
5555
* Current TCPDF version.
5656
* @private static
5757
*/
58-
private static $tcpdf_version = '6.11.1';
58+
private static $tcpdf_version = '6.11.2';
5959

6060
/**
6161
* String alias for total number of pages.

tcpdf.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
//============================================================+
33
// File name : tcpdf.php
4-
// Version : 6.11.1
4+
// Version : 6.11.2
55
// Begin : 2002-08-03
66
// Last Update : 2026-03-03
77
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com - info@tecnick.com
@@ -104,7 +104,7 @@
104104
* Tools to encode your unicode fonts are on fonts/utils directory.</p>
105105
* @package com.tecnick.tcpdf
106106
* @author Nicola Asuni
107-
* @version 6.11.1
107+
* @version 6.11.2
108108
*/
109109

110110
// TCPDF configuration
@@ -128,7 +128,7 @@
128128
* 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>
129129
* @package com.tecnick.tcpdf
130130
* @brief PHP class for generating PDF documents without requiring external extensions.
131-
* @version 6.11.1
131+
* @version 6.11.2
132132
* @author Nicola Asuni - info@tecnick.com
133133
* @IgnoreAnnotation("protected")
134134
* @IgnoreAnnotation("public")
@@ -2907,11 +2907,7 @@ public function setDisplayMode($zoom, $layout='SinglePage', $mode='UseNone') {
29072907
* @since 1.4
29082908
*/
29092909
public function setCompression($compress=true) {
2910-
if (function_exists('gzcompress')) {
2911-
if ($compress) {
2912-
$this->compress = true;
2913-
}
2914-
}
2910+
$this->compress = ($compress && function_exists('gzcompress'));
29152911
}
29162912

29172913
/**

0 commit comments

Comments
 (0)