diff --git a/src/display/svg.js b/src/display/svg.js index 4631b5d4f..3aa4cf083 100644 --- a/src/display/svg.js +++ b/src/display/svg.js @@ -1090,6 +1090,9 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) { rect.setAttributeNS(null, "width", x1 - x0); rect.setAttributeNS(null, "height", y1 - y0); rect.setAttributeNS(null, "fill", this._makeShadingPattern(args)); + if (this.current.fillAlpha < 1) { + rect.setAttributeNS(null, "fill-opacity", this.current.fillAlpha); + } this._ensureTransformGroup().appendChild(rect); }