eb8f4e8343
Do not throw exception when hex strings are in the wrong format Currently pdf.js is throwing an exception for the following hex string: `<7 0 2 15 5 2 2 2 4 3 2 4>` The issue is that the 15 is not a valid hex character so pdf.js ends up throwing an exception. This diff changes the parser to process the above hex string as follow: `70 21 55 2 24 32` (Note: the final 4 of the hex string is ignored) replicating the behaviour of MuPDF, and doesn't throw an exception. |
||
---|---|---|
.. | ||
api_spec.js | ||
crypto_spec.js | ||
evaluator_spec.js | ||
font_spec.js | ||
function_spec.js | ||
metadata_spec.js | ||
obj_spec.js | ||
parser_spec.js | ||
stream_spec.js | ||
testreporter.js | ||
unit_test.html | ||
util_spec.js |