mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-26 00:47:21 +02:00
Add callout line informations to FreeTextAnnotation
This commit is contained in:
parent
fe2680fa9b
commit
edfad112da
@ -3919,9 +3919,13 @@ 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")) {
|
||||||
|
if (dict.has("CL")) {
|
||||||
this.setLineEnding(dict.getArray("LE"));
|
this.setLineEnding(dict.getArray("LE"));
|
||||||
|
this.data.calloutLine = dict.getArray("CL");
|
||||||
|
this.data.rectDifference = dict.getArray("RD");
|
||||||
this.data.lineEnding = this.lineEnding;
|
this.data.lineEnding = this.lineEnding;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (this._hasAppearance) {
|
if (this._hasAppearance) {
|
||||||
const { fontColor, fontSize } = parseAppearanceStream(
|
const { fontColor, fontSize } = parseAppearanceStream(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user