summaryrefslogtreecommitdiff
path: root/fxjs/cjs_annot.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-11-28 18:19:57 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-28 18:19:57 +0000
commit0f1ca17e45bee4f1cb04d33437eba010b1afcd72 (patch)
tree6c8d990703abc659d252e3a33a9438449ee3be7d /fxjs/cjs_annot.cpp
parent99acb1c816dc88dbda5d03ef28dbdaa928f7e22a (diff)
downloadpdfium-0f1ca17e45bee4f1cb04d33437eba010b1afcd72.tar.xz
Convert from character stream to visible text indices in GetText
Most of the API methods FPDFText operate on indices in terms of the underlying stream of characters. This stream includes non-printing control characters, which are not part of the visible text. The majority of files do not appear to have these hidden characters so there is a 1:1 correspondence between them. When they are present conversion needs to occur to make sure that GetText doesn't attempt to retrieve for a span that is out of range. BUG=chromium:788103,chromium:788220 Change-Id: I4c9fa403ea65754ba94e3f15ded49fe0641e9db5 Reviewed-on: https://pdfium-review.googlesource.com/19550 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjs_annot.cpp')
0 files changed, 0 insertions, 0 deletions