Comments (1)
I created a test pdf, with two texts "Normal" and "Bold", the only difference in the pdf.js result is the font name
{
"x": 57,
"y": 67.88999999999999,
"str": "Normal",
"dir": "ltr",
"width": 38.6712,
"height": 12,
"fontName": "g_d0_f1"
},
{
"x": 57,
"y": 81.88999999999999,
"str": "Bold",
"dir": "ltr",
"width": 26.6736,
"height": 12,
"fontName": "g_d0_f2"
},
There seems to be undocumented API for getting more information about fontNames, but additional parsing would be required.
So, unfortunatelly only the fontName is currently available as an indicator.
from pdf.js-extract.
Related Issues (20)
- Coordinate system HOT 1
- Some characters not being extracted HOT 4
- Mismatch between no. of divs in PDF.js and 0.2.0 version HOT 3
- Error HOT 1
- My Error HOT 2
- Synchronous version HOT 4
- Setting up fake worker failed: "Cannot find module './vendors~pdfjsWorker.js' HOT 7
- In-the-middle word breaking on diacritics HOT 2
- Extract Arabic Words from PDF HOT 8
- Convert back from json to pdf HOT 1
- support in React native HOT 1
- Setting up fake worker failed HOT 2
- Get Coordinates of Each word. HOT 1
- json data issue HOT 1
- can't resolve "../build/Release/canvas.node" in NX mono repo project HOT 1
- Fix for Y coordinate with new version of pdfjs HOT 4
- Windows Print pdf extract HOT 1
- Can't we retrieve text coordinates with pdf.js-extract?
- Is there a way to get the fill color for text?
- It does not work for remote pdf files? ENOENT error 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 pdf.js-extract.