fix - Named links have been broken. This fixes. (#415)

Co-authored-by: Nicola Asuni <nicolaasuni@users.noreply.github.com>
This commit is contained in:
russellmann 2021-12-28 04:06:55 -08:00 committed by GitHub
parent d1db9ba8ff
commit 66df6587ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8445,7 +8445,7 @@ class TCPDF {
if (is_string($pl['txt']) && !empty($pl['txt'])) {
if ($pl['txt'][0] == '#') {
// internal destination
$annots .= ' /A <</S /GoTo /D '.TCPDF_STATIC::encodeNameObject(substr($pl['txt'], 1)).'>>';
$annots .= ' /A <</S /GoTo /D /'.TCPDF_STATIC::encodeNameObject(substr($pl['txt'], 1)).'>>';
} elseif ($pl['txt'][0] == '%') {
// embedded PDF file
$filename = basename(substr($pl['txt'], 1));