mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Don't cache /ExtGState entries that contain fonts (PR 12087 follow-up)
I completely overlooked the fact that `PartialEvaluator.handleSetFont` also updates the current `state`, which means that currently we're not actually handling font data correctly for cached /ExtGState data. (Thankfully, using /ExtGState to set a font is somewhat rare in practice.)
This commit is contained in:
parent
192afb87e3
commit
9d3e046a4f
1 changed files with 2 additions and 0 deletions
|
@ -846,6 +846,8 @@ class PartialEvaluator {
|
|||
gStateObj.push([key, value]);
|
||||
break;
|
||||
case "Font":
|
||||
isSimpleGState = false;
|
||||
|
||||
promise = promise.then(() => {
|
||||
return this.handleSetFont(
|
||||
resources,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue