Giter Club home page Giter Club logo

Comments (4)

swftvsn avatar swftvsn commented on September 17, 2024 1

@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.

swftvsn avatar swftvsn commented on September 17, 2024

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.

swftvsn avatar swftvsn commented on September 17, 2024

If you could take a look at mozilla/pdf.js#7929 (comment) (and comments below) I would appreciate it.

from pdf-extractor.

Hikariii avatar Hikariii commented on September 17, 2024

@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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.