pdf.js/src/display
calixteman af4dc55019
[api-minor] Fix the way to chunk the strings (#13257)
- Improve chunking in order to fix some bugs where the spaces aren't here:
    * track the last position where a glyph has been drawn;
    * when a new glyph (first glyph in a chunk) is added then compare its position with the last saved one and add a space or break:
      - there are multiple ways to move the glyphs and to avoid to have to deal with all the different possibilities it's a way easier to just compare positions;
      - and so there is now one function (i.e. "compareWithLastPosition") where all the job is done.
  - Add some breaks in order to get lines;
  - Remove the multiple whites spaces:
    * some spaces were filled with several whites spaces and so it makes harder to find some sequences of words using the search tool;
    * other pdf readers replace spaces by one white space.

Update src/core/evaluator.js

Co-authored-by: Jonas Jenwald <jonas.jenwald@gmail.com>

Co-authored-by: Jonas Jenwald <jonas.jenwald@gmail.com>
2021-04-30 14:41:13 +02:00
..
annotation_layer.js Replace a bunch of Array.prototype.forEach() cases with for...of loops instead 2021-04-24 13:00:19 +02:00
annotation_storage.js Remove the deprecated AnnotationStorage.getOrCreateValue-method (PR 12759 follow-up) 2021-04-06 13:22:06 +02:00
api_compatibility.js [api-minor] Remove the disableCreateObjectURL option from the getDocument parameters, since it's now unused in the API 2020-05-22 00:22:48 +02:00
api.js Replace a bunch of Array.prototype.forEach() cases with for...of loops instead 2021-04-24 13:00:19 +02:00
canvas.js Convert the code in src/display/canvas.js to use standard classes 2021-04-26 22:10:38 +02:00
content_disposition.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
display_utils.js Move rotation normalization from PDFViewerApplication and into BaseViewer 2021-03-28 14:19:58 +02:00
fetch_stream.js Replace a bunch of Array.prototype.forEach() cases with for...of loops instead 2021-04-24 13:00:19 +02:00
font_loader.js Replace a bunch of Array.prototype.forEach() cases with for...of loops instead 2021-04-24 13:00:19 +02:00
metadata.js Replace the objectFromEntries helper function with an objectFromMap one instead 2021-03-11 16:37:34 +01:00
network_utils.js [api-minor] Support the Content-Disposition filename in the Firefox PDF Viewer (bug 1694556, PR 9379 follow-up) 2021-02-26 10:50:29 +01:00
network.js Clear some Arrays, rather than re-initialize them, in src/display/-code 2021-04-24 13:00:53 +02:00
node_stream.js Replace a bunch of Array.prototype.forEach() cases with for...of loops instead 2021-04-24 13:00:19 +02:00
node_utils.js Enable the ESLint no-var rule in the src/display/ folder 2020-10-02 16:16:23 +02:00
optional_content_config.js Implement visibility expressions for optional content 2021-04-14 17:39:41 +03:00
pattern_helper.js Improve the Pattern-detection in CanvasGraphics.stroke 2020-11-06 11:46:35 +01:00
svg.js Replace a bunch of Array.prototype.forEach() cases with for...of loops instead 2021-04-24 13:00:19 +02:00
text_layer.js [api-minor] Fix the way to chunk the strings (#13257) 2021-04-30 14:41:13 +02:00
transport_stream.js Clear some Arrays, rather than re-initialize them, in src/display/-code 2021-04-24 13:00:53 +02:00
webgl.js Convert files in the src/display/-folder to use optional chaining where possible 2020-11-07 13:22:06 +01:00
worker_options.js Use typedef to define the type of GlobalWorkerOptions. 2020-08-03 19:06:28 +09:00
xfa_layer.js XFA - Convert some template properties into CSS ones (#13082) 2021-03-25 13:02:39 +01:00