Update tcpdf.php

This commit is contained in:
BENKE Charlene 2019-03-13 17:06:06 +01:00 committed by GitHub
parent 71bc8786de
commit 1a7dcb7167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4875,6 +4875,11 @@ class TCPDF {
$data = gzcompress($data);
$filter = ' /Filter /FlateDecode';
}
if ($this->pdfa_version == 3) {
$filter = ' /Subtype /text#2Fxml';
}
$stream = $this->_getrawstream($data, $filedata['n']);
$out = $this->_getobj($filedata['n'])."\n";
$out .= '<< /Type /EmbeddedFile'.$filter.' /Length '.strlen($stream).' /Params <</Size '.$rawsize.'>> >>';