From 336969ebc09d752aced30bffb8e96d96654d0576 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 3 Apr 2023 14:47:39 +0200 Subject: [PATCH] wip #5844 @0.5 --- src/Links/Link.php | 3 ++- src/Links/PDFPopupLink.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/Links/PDFPopupLink.php diff --git a/src/Links/Link.php b/src/Links/Link.php index 1e92693..c88b17c 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -215,8 +215,9 @@ class Link { } break; case 39: - return new LayerLink($id, $init, $compiler); + case 41: + return new PDFPopupLink($id, $init, $compiler); default: return null; } diff --git a/src/Links/PDFPopupLink.php b/src/Links/PDFPopupLink.php new file mode 100644 index 0000000..4f03f02 --- /dev/null +++ b/src/Links/PDFPopupLink.php @@ -0,0 +1,14 @@ +copyExternalFile($this->to); + return '#/pdf/' . $this->to; + } +} -- 2.39.5