summaryrefslogtreecommitdiff
path: root/source/pdf/js
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-12-23 11:54:49 +0000
committerRobin Watts <robin.watts@artifex.com>2013-12-24 10:07:25 +0000
commit6b08b13fc4e95f9f0446a7199f1d9b5d9348d2f9 (patch)
tree01968e4ad4fa34c96d831581ec7f0920ff12a82e /source/pdf/js
parent3328de5f6432ee25525dca59d4e60d2603477b81 (diff)
downloadmupdf-6b08b13fc4e95f9f0446a7199f1d9b5d9348d2f9.tar.xz
Bug 694810: Implement late file repair for PDFs.
Currently, if we spot a bad xref as we are reading a PDF in, we can repair that PDF by doing a long exhaustive read of the file. This reconstructs the information that was in the xref, and the file can be opened (and later saved) as normal. If we hit an object that is not in the expected place however, we cannot trigger a repair at that point - so xrefs with duff offsets in (within the bounds of the file) will never be repaired. This commit solves that by triggering a repair (just once) whenever we fail to parse an object in the expected place.
Diffstat (limited to 'source/pdf/js')
0 files changed, 0 insertions, 0 deletions