mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-27 18:45:48 +02:00
Add validation for callout line in FreeText annotation
This commit is contained in:
parent
8e40e4e864
commit
e2bb200d00
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user