mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
OpenOffice includes the optional reference to a Font dictionary in the Resources dictionary. This breaks SetFont in pdf.js as the Font in this.res is not a dictionary but an xref.
This commit is contained in:
parent
ca039d7c7c
commit
a6f4a92286
1 changed files with 1 additions and 1 deletions
2
pdf.js
2
pdf.js
|
@ -3803,7 +3803,7 @@ var CanvasGraphics = (function() {
|
|||
this.current.leading = leading;
|
||||
},
|
||||
setFont: function(fontRef, size) {
|
||||
var font = this.res.get("Font");
|
||||
var font = this.xref.fetchIfRef(this.res.get("Font"));
|
||||
if (!IsDict(font))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue