mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Support (rare) Type3 fonts with Pattern resources (issue 16127)
This simply extends the approach in PR 10727 to also cover Patterns, which shouldn't be a common occurrence in Type3 fonts (since this is the first issue we've seen).
This commit is contained in:
parent
e0d934ac9d
commit
471aef5fc6
5 changed files with 22 additions and 2 deletions
|
@ -2517,7 +2517,7 @@ class CanvasGraphics {
|
|||
if (this.cachedPatterns.has(objId)) {
|
||||
pattern = this.cachedPatterns.get(objId);
|
||||
} else {
|
||||
pattern = getShadingPattern(this.objs.get(objId));
|
||||
pattern = getShadingPattern(this.getObject(objId));
|
||||
this.cachedPatterns.set(objId, pattern);
|
||||
}
|
||||
if (matrix) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue