diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-06-10 15:24:45 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-15 20:02:41 +0200 |
| commit | 83b02062f91d616a01a5daa035fbca7d097adc05 (patch) | |
| tree | 63008394cba75f43404066d25a63dd392585a227 /js/index.js | |
| parent | 46cf469a0dfa9088aaf059b2d051ecf9951beea7 (diff) | |
| download | wvs-vplan-83b02062f91d616a01a5daa035fbca7d097adc05.tar.gz wvs-vplan-83b02062f91d616a01a5daa035fbca7d097adc05.zip | |
aktualisiere PDF.js
Diffstat (limited to 'js/index.js')
| -rw-r--r-- | js/index.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/index.js b/js/index.js index a22e96b..ddedc8f 100644 --- a/js/index.js +++ b/js/index.js @@ -598,12 +598,12 @@ function renderPage($div, pdf, pageNumber, callback){ var pageText = ""; var lastBlock = null; - for(j = 0; j < textContent.length; j++){ - var block = textContent[j]; + for(j = 0; j < textContent.items.length; j++){ + var block = textContent.items[j]; if(lastBlock !== null && lastBlock.str[lastBlock.str.length - 1] !== ' '){ - if(block.x < lastBlock.x){ + if(block.transform[4] < lastBlock.transform[4]){ pageText += '\n'; - }else if(lastBlock.y !== block.y && (lastBlock.str.match(/^(\s?[a-zA-Z])$|^(.+\s[a-zA-Z])$/) === null )){ + }else if(lastBlock.transform[5] !== block.transform[5] && (lastBlock.str.match(/^(\s?[a-zA-Z])$|^(.+\s[a-zA-Z])$/) === null )){ pageText += '\n'; } } |
