Add UF and AFRelationship missing

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

View File

@ -4863,7 +4863,10 @@ class TCPDF {
$this->efnames[$filename] = $filedata['f'].' 0 R';
// embedded file specification object
$out = $this->_getobj($filedata['f'])."\n";
$out .= '<</Type /Filespec /F '.$this->_datastring($filename, $filedata['f']).' /EF <</F '.$filedata['n'].' 0 R>> >>';
$out .= '<</Type /Filespec /F '.$this->_datastring($filename, $filedata['f']);
$out .= ' /UF '.$this->_datastring($filename, $filedata['f']);
$out .= ' /AFRelationship /Source';
$out .= ' /EF <</F '.$filedata['n'].' 0 R>> >>';
$out .= "\n".'endobj';
$this->_out($out);
// embedded file object