diff --git a/pdf.js b/pdf.js index a9f0ee935..132d16ec1 100644 --- a/pdf.js +++ b/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; diff --git a/test/pdfs/DiwanProfile.pdf.link b/test/pdfs/DiwanProfile.pdf.link new file mode 100644 index 000000000..12694632f --- /dev/null +++ b/test/pdfs/DiwanProfile.pdf.link @@ -0,0 +1 @@ +http://oannis.com/DiwanProfile.pdf \ No newline at end of file diff --git a/test/test_manifest.json b/test/test_manifest.json index 4302e1f6e..d8a8e8f7d 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -42,5 +42,11 @@ "link": true, "rounds": 1, "type": "eq" + }, + { "id": "openoffice-pdf", + "file": "pdfs/DiwanProfile.pdf", + "link": true, + "rounds": 1, + "type": "load" } ]