Comments (2)
I went through the documentation for pdf2json and figured that I might have to use pdfData.formImage.Pages[pageNumber].Texts[wordNumber].R[0]
object after parsing the pdf to get hold of values I need.
The property TS
of the above object is an array, the value at TS[2]
corresponds to whether the text is bold (value = 1) or not (value = 0).
I also needed to initialize the parser as follows:
let pdfParser = new PDFParser(null, 1)
Check this for more details.
from npm-pdfreader.
Thanks for sharing the result of your investigation, Akshay! 👌
from npm-pdfreader.
Related Issues (20)
- PDF parse failed HOT 11
- Question: Missing spaces in text output HOT 1
- 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 13
- It is not supporting the TS type declaration. HOT 25
- aws lambda, sst. Error: Identifier '__dirname' has already been declared HOT 2
- Rules not working HOT 1
- Import when using the library in Cypress HOT 1
- Can I get the coordinates of the given text from all pages of the PDF? HOT 1
- Setting up fake worker. HOT 3
- 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
- Error importing PdfReader HOT 2
- Error: Data Extraction Fails in Web Browser Using Axios/Fetch Despite Successful Backend Operation HOT 1
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.