Merge pull request #197 from ironymark/master

Support PDF generated by OpenOffice
This commit is contained in:
Andreas Gal 2011-07-05 17:30:55 -07:00
commit edd2795c17
3 changed files with 8 additions and 1 deletions

2
pdf.js
View File

@ -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;

View File

@ -0,0 +1 @@
http://oannis.com/DiwanProfile.pdf

View File

@ -42,5 +42,11 @@
"link": true,
"rounds": 1,
"type": "eq"
},
{ "id": "openoffice-pdf",
"file": "pdfs/DiwanProfile.pdf",
"link": true,
"rounds": 1,
"type": "load"
}
]