Add validation for callout line in FreeText annotation

This commit is contained in:
Edoardo Cavazza 2025-01-27 09:03:49 +01:00
parent 8e40e4e864
commit e2bb200d00

View File

@ -3884,8 +3884,12 @@ class FreeTextAnnotation extends MarkupAnnotation {
if (typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) {
if (dict.has("CL")) {
this.setLineEnding(dict.getArray("LE"));
this.data.calloutLine = dict.getArray("CL");
this.data.lineEnding = this.lineEnding;
const calloutLine = dict.getArray("CL");
if (isNumberArray(calloutLine)) {
this.data.calloutLine = calloutLine;
}
}
}