1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00
pdf.js/src
Chas Emerick 85c52f1fd6 Fix getTextContent evaluation to only apply TJ horizontal offsets using numeric items/args
While the array argument to TJ should only contain strings and numbers, other
unfortunate items are found in PDFs in the wild, e.g.:

[(Grandes) 0.0 Tc
-250.0 (Client\350les,) 0.0 Tc
-250.0 (Financements) 0.0 Tc
-250.0 (et) 0.0 Tc
-250.0 (March\351s) ] TJ

getOperatorList already properly ignores any non-string, non-numeric values in
TJ arrays; without this patch to getTextContent, returned text items can have
NaN widths due to calculations being applied to those non-numeric values.
2016-10-13 08:08:31 -04:00
..
core Fix getTextContent evaluation to only apply TJ horizontal offsets using numeric items/args 2016-10-13 08:08:31 -04:00
display Disables Font Loading API for Firefox. 2016-10-06 09:30:18 -05:00
images Vectorize the logo. 2012-10-29 14:08:52 -04:00
shared Choice widget annotations: core and display layer implementation 2016-10-05 21:25:29 +02:00
doc_helper.js Proxy global PDFJS.verbosity to properly configure shared/util. 2016-03-23 19:24:37 -05:00
frameworks.js Merge pull request #7189 from yurydelendik/webpack-browserify-love 2016-04-13 08:42:11 -05:00
main_loader.js Exposes all functional members via lib exports and use them in viewer. 2016-04-07 13:46:07 -05:00
pdf.js Exposes all functional members via lib exports and use them in viewer. 2016-04-07 13:46:07 -05:00
pdf.worker.entry.js Removing "entry-loader" dependency from webpack. 2016-04-13 08:24:25 -05:00
worker_loader.js Improve work-around for importScripts bug. 2016-02-03 23:30:27 +01:00