Comments (4)
@Hikariii Yep, we're running with disableFontFace=true
but unfortunately a lot of PDFs fail to render for us, and we can't skip those.. We're hitting this issue: mozilla/pdf.js#4244
from pdf-extractor.
Do you have any plans to implement this or can give any directions where to begin to look? Or how did you generally plan to make this work?
from pdf-extractor.
If you could take a look at mozilla/pdf.js#7929 (comment) (and comments below) I would appreciate it.
from pdf-extractor.
@swftvsn Not sure how to approach this. This issue is not (yet) a priority for us, because we are fine with rendering fonts as images. It is not a priority for us right now, but to point you in a direction: I'm pretty sure you need the fonts installed on the machine running nodejs.
Looking at your Pango warning
that may not be the case in your setup (just a guess):
(process:36223): Pango-WARNING **: 15:46:36.286: couldn't load font
"ABBVIT+Impact,monospace Condensed Not-Rotated 16px", modified
variant/weight/stretch as fallback, expect ugly output.
It's something I missed the last time trying.
Still, if you render the node-canvas as image (png/jpg) it may be enough to set disableFontFace=true
and skip rendering fonts all together.
from pdf-extractor.
Related Issues (7)
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-extractor.