Browse Source

Merge pull request #197 from ironymark/master

Support PDF generated by OpenOffice
Andreas Gal 14 years ago
parent
commit
edd2795c17
  1. 2
      pdf.js
  2. 1
      test/pdfs/DiwanProfile.pdf.link
  3. 6
      test/test_manifest.json

2
pdf.js

@ -3803,7 +3803,7 @@ var CanvasGraphics = (function() { @@ -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;

1
test/pdfs/DiwanProfile.pdf.link

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

6
test/test_manifest.json

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

Loading…
Cancel
Save