Add callout line informations to FreeTextAnnotation

This commit is contained in:
Edoardo Cavazza 2025-01-24 15:23:01 +01:00
parent fe2680fa9b
commit edfad112da

View File

@ -3919,8 +3919,12 @@ class FreeTextAnnotation extends MarkupAnnotation {
this._hasAppearance = !!this.appearance; this._hasAppearance = !!this.appearance;
if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) { if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) {
this.setLineEnding(dict.getArray("LE")); if (dict.has("CL")) {
this.data.lineEnding = this.lineEnding; 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) { if (this._hasAppearance) {