Comments (1)
It looks like the software that produced that PDF has a particular way to split words into text entries... Maybe because the paragraph of text was justified, i.e. adding variable amount of space between words and letters, to fill the width of the page?
In that case, I see two possible solutions that you may want to try:
- try to regenerate that PDF file in a way to prevent variable space between words and letter, e.g. by using another PDF generator, or better: by disabling any text formatting that may cause this problem.
- or replace
""
by" "
in your source code, to add spaces between words, and then process the resulting lines to de-duplicate spaces and fix words using a spell-checker / dictionary.
from npm-pdfreader.
Related Issues (20)
- ReferenceError: MozBlobBuilder is not defined HOT 1
- example not working as shown in the document HOT 4
- PDF parse failed HOT 11
- Can't import library: Unexpected token '(' HOT 7
- 'ava' is not recognized as an internal or external command - When testing compatibility HOT 5
- Clarification on latest release of pdfreader HOT 2
- Gettin items as promise HOT 1
- Make it async // return item as promise HOT 3
- Importing module failed HOT 4
- [ERR_REQUIRE_ESM] require() of ES Module is not supported HOT 11
- It is not supporting the TS type declaration. HOT 24
- aws lambda, sst. Error: Identifier '__dirname' has already been declared HOT 2
- Rules not working
- Import when using the library in Cypress HOT 1
- Can I get the coordinates of the given text from all pages of the PDF?
- Setting up fake worker.
- Cannot read text based PDF file content HOT 4
- Where is `displayValue` declared? HOT 1
- isDebugMode - No such file or directory "test\data\05-versions-space.pdf" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npm-pdfreader.