[Pkg-javascript-commits] [pdf.js] 66/210: Fixes rendering of PDFs with nested trailer dictionary
David Prévot
taffit at moszumanska.debian.org
Thu Jun 5 14:21:02 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch upstream
in repository pdf.js.
commit 6b9aeb34f1a2ad99372d5ee18cee397a60d86c6c
Author: Tim van der Meij <timvandermeij at gmail.com>
Date: Fri May 2 20:45:34 2014 +0200
Fixes rendering of PDFs with nested trailer dictionary
---
src/core/obj.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/core/obj.js b/src/core/obj.js
index ce25d11..8d61452 100644
--- a/src/core/obj.js
+++ b/src/core/obj.js
@@ -731,6 +731,11 @@ var XRef = (function XRefClosure() {
// The parser goes through the entire stream << ... >> and provides
// a getter interface for the key-value table
var dict = parser.getObj();
+
+ // The pdflib PDF generator can generate a nested trailer dictionary
+ if (!isDict(dict) && dict.dict) {
+ dict = dict.dict;
+ }
if (!isDict(dict)) {
error('Invalid XRef table: could not parse trailer dictionary');
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list