Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/display/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -3079,7 +3079,7 @@ class CanvasGraphics {
this.save();
// Reset inherited alpha for colored (d0) glyphs (issue 21430).
if (operatorList.fnArray[0] === OPS.setCharWidth) {
current.fillAlpha = current.strokeAlpha = 1;
this.current.fillAlpha = this.current.strokeAlpha = 1;
ctx.globalAlpha = 1;
}
ctx.scale(fontSize, fontSize);
Expand Down
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -975,3 +975,4 @@
!crypt_filters.pdf
!bug2082236.pdf
!autoprint_will_print.pdf
!type3_d0_alpha.pdf
Binary file added test/pdfs/type3_d0_alpha.pdf
Binary file not shown.
8 changes: 8 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14750,5 +14750,13 @@
"type": "eq",
"annotations": true,
"about": "NoRotate FreeText annotation on a page with /Rotate 270."
},
{
"id": "type3_d0_alpha",
"file": "pdfs/type3_d0_alpha.pdf",
"md5": "f0273a0ba9c41b5f5033ca86fff062f0",
"rounds": 1,
"type": "eq",
"about": "Colored Type3 glyph followed by a semi-transparent stroke and fill."
}
]
Loading