Skip to content

Commit

Permalink
[pdf] Fix for bug #64261
Browse files Browse the repository at this point in the history
  • Loading branch information
KhromovNikita authored and K0R0L committed Oct 12, 2023
1 parent 10636db commit e443e7a
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions pdf/src/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -1477,9 +1477,9 @@ var CPresentation = CPresentation || function(){};
};
CPDFDoc.prototype.SetHighlight = function(r, g, b, opacity) {
this.HighlightColor = {
r: r,
g: g,
b: b,
r: r || 0,
g: g || 0,
b: b || 0,
a: opacity
};

Expand Down Expand Up @@ -1517,16 +1517,17 @@ var CPresentation = CPresentation || function(){};

oAnnot.SetQuads(aQuads);
oAnnot.SetStrokeColor([r/255, g/255, b/255]);
oAnnot.SetOpacity(opacity);
}

editor.sendEvent("asc_onMarkerFormatChanged", AscPDF.ANNOTATIONS_TYPES.Highlight, false);
editor.SetMarkerFormat(AscPDF.ANNOTATIONS_TYPES.Highlight, false);
};
CPDFDoc.prototype.SetUnderline = function(r, g, b, opacity) {
this.UnderlineColor = {
r: r,
g: g,
b: b,
r: r || 0,
g: g || 0,
b: b || 0,
a: opacity
};

Expand Down Expand Up @@ -1563,16 +1564,17 @@ var CPresentation = CPresentation || function(){};

oAnnot.SetQuads(aQuads);
oAnnot.SetStrokeColor([r/255, g/255, b/255]);
oAnnot.SetOpacity(opacity);
}

editor.sendEvent("asc_onMarkerFormatChanged", AscPDF.ANNOTATIONS_TYPES.Underline, false);
editor.SetMarkerFormat(AscPDF.ANNOTATIONS_TYPES.Underline, false);
};
CPDFDoc.prototype.SetStrikeout = function(r, g, b, opacity) {
this.StrikeoutColor = {
r: r,
g: g,
b: b,
r: r || 0,
g: g || 0,
b: b || 0,
a: opacity
};

Expand Down Expand Up @@ -1609,6 +1611,7 @@ var CPresentation = CPresentation || function(){};

oAnnot.SetQuads(aQuads);
oAnnot.SetStrokeColor([r/255, g/255, b/255]);
oAnnot.SetOpacity(opacity);
}

editor.sendEvent("asc_onMarkerFormatChanged", AscPDF.ANNOTATIONS_TYPES.Strikeout, false);
Expand Down

0 comments on commit e443e7a

Please sign in to comment.