Skip to content

Commit 11e4b50

Browse files
committed
Merge branch 'schlotzz' into bulkmerge
2 parents 2f6b257 + 0cc9525 commit 11e4b50

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tcpdf.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2910,9 +2910,7 @@ public function setCompression($compress=true) {
29102910
$this->compress = false;
29112911
if (function_exists('gzcompress')) {
29122912
if ($compress) {
2913-
if ( !$this->pdfa_mode) {
2914-
$this->compress = true;
2915-
}
2913+
$this->compress = true;
29162914
}
29172915
}
29182916
}
@@ -5001,11 +4999,10 @@ protected function _putEmbeddedFiles() {
50014999
$filter = '';
50025000
if ($this->compress) {
50035001
$data = gzcompress($data);
5004-
$filter = ' /Filter /FlateDecode';
5002+
$filter .= ' /Filter /FlateDecode';
50055003
}
5006-
50075004
if ($this->pdfa_version == 3) {
5008-
$filter = ' /Subtype /text#2Fxml';
5005+
$filter .= ' /Subtype /text#2Fxml';
50095006
}
50105007

50115008
$stream = $this->_getrawstream($data, $filedata['n']);

0 commit comments

Comments
 (0)