We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f6b257 + 0cc9525 commit 11e4b50Copy full SHA for 11e4b50
1 file changed
tcpdf.php
@@ -2910,9 +2910,7 @@ public function setCompression($compress=true) {
2910
$this->compress = false;
2911
if (function_exists('gzcompress')) {
2912
if ($compress) {
2913
- if ( !$this->pdfa_mode) {
2914
- $this->compress = true;
2915
- }
+ $this->compress = true;
2916
}
2917
2918
@@ -5001,11 +4999,10 @@ protected function _putEmbeddedFiles() {
5001
4999
$filter = '';
5002
5000
if ($this->compress) {
5003
$data = gzcompress($data);
5004
- $filter = ' /Filter /FlateDecode';
+ $filter .= ' /Filter /FlateDecode';
5005
5006
-
5007
if ($this->pdfa_version == 3) {
5008
- $filter = ' /Subtype /text#2Fxml';
+ $filter .= ' /Subtype /text#2Fxml';
5009
5010
5011
$stream = $this->_getrawstream($data, $filedata['n']);
0 commit comments