Giter Site home page Giter Site logo

Comments (4)

msokk avatar msokk commented on May 30, 2024

Thanks for the heads up. I just tried 1.6.2, but haven't seen any garbled text yet. Only thing I have noticed is that PDF sizes have gone down quite a bit, almost as good as rendering with a dedicated writer or such.

Btw, what did you need to customize in the Dockerfile?

from electron-render-service.

burningTyger avatar burningTyger commented on May 30, 2024

I dropped the font deps since I'm exclusively using web fonts. Maybe that's the issue. I will try to generate a PDF for comparison with both versions. Smaller PDFs are a good reason to try again, though. For some reason the other fork doesn't refer to your repo, maybe because it was manually created the repo: https://github.com/hmt/electron_pdf/blob/master/Dockerfile

from electron-render-service.

burningTyger avatar burningTyger commented on May 30, 2024

I tried again with 1.7.3 and still have font issues when using woff fonts:
font

from electron-render-service.

burningTyger avatar burningTyger commented on May 30, 2024

I fixed it with a different .font.conf file. Just dropped the replacement file from the internets: https://gist.github.com/silv3rm00n/5599072

Now the PDF looks great again:
better

BTW: The font issue affected not just my electron version, your docker image is affected by it too.

from electron-render-service.

Related Issues (20)

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.