From edfad112dabce5077758afcd76f251cba6da47fd Mon Sep 17 00:00:00 2001 From: Edoardo Cavazza Date: Fri, 24 Jan 2025 15:23:01 +0100 Subject: [PATCH] Add callout line informations to FreeTextAnnotation --- src/core/annotation.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/annotation.js b/src/core/annotation.js index 7f724896d..79fd83fe7 100644 --- a/src/core/annotation.js +++ b/src/core/annotation.js @@ -3919,8 +3919,12 @@ class FreeTextAnnotation extends MarkupAnnotation { this._hasAppearance = !!this.appearance; if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) { - this.setLineEnding(dict.getArray("LE")); - this.data.lineEnding = this.lineEnding; + if (dict.has("CL")) { + this.setLineEnding(dict.getArray("LE")); + this.data.calloutLine = dict.getArray("CL"); + this.data.rectDifference = dict.getArray("RD"); + this.data.lineEnding = this.lineEnding; + } } if (this._hasAppearance) {