This website requires JavaScript.
Explore
Help
Sign In
Sakurai
/
pdf.js
Watch
1
Star
0
Fork
0
You've already forked pdf.js
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
a5a9357e15
pdf.js
/
test
/
pdfs
/
issue14269.pdf.link
2 lines
57 B
SYSTEMD
Raw
Normal View
History
Unescape
Escape
When parsing corrupt documents without any trailer-dictionary, fallback to the "top"-dictionary (issue 14269) There's obviously no guarantee that this will work in general, if the document is sufficiently corrupt, but it should hopefully be better than just throwing `InvalidPDFException` as currently happens. Please note that, as is often the case with corrupt documents, it's somewhat difficult to know if we're rendering the document "correctly" with this patch[1]. In this case even Adobe Reader cannot open the document, which is always a good sign that it's *really* corrupt, however we're at least able to render *something* with this patch. --- [1] Whatever "correct" even means when dealing with corrupt PDF documents, where often times different PDF viewers won't agree completely.
2021-11-13 21:06:21 +09:00
h
t
t
p
s
:
/
/
g
i
t
h
u
b
.
c
o
m
/
m
o
z
i
l
l
a
/
p
d
f
.
j
s
/
f
i
l
e
s
/
7
5
2
9
7
8
9
/
t
e
s
t
.
p
d
f
Reference in New Issue
Copy Permalink