From 71bc8786de66018927a8d77e800789a8355421a6 Mon Sep 17 00:00:00 2001 From: BENKE Charlene <1179011+defrance@users.noreply.github.com> Date: Wed, 13 Mar 2019 16:54:13 +0100 Subject: [PATCH] Add UF and AFRelationship missing --- tcpdf.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tcpdf.php b/tcpdf.php index 0243527..29a4167 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -4863,7 +4863,10 @@ class TCPDF { $this->efnames[$filename] = $filedata['f'].' 0 R'; // embedded file specification object $out = $this->_getobj($filedata['f'])."\n"; - $out .= '<_datastring($filename, $filedata['f']).' /EF <> >>'; + $out .= '<_datastring($filename, $filedata['f']); + $out .= ' /UF '.$this->_datastring($filename, $filedata['f']); + $out .= ' /AFRelationship /Source'; + $out .= ' /EF <> >>'; $out .= "\n".'endobj'; $this->_out($out); // embedded file object