Coder Social home page Coder Social logo

Document uploading about bonsai HOT 2 CLOSED

impworks avatar impworks commented on June 12, 2024
Document uploading

from bonsai.

Comments (2)

impworks avatar impworks commented on June 12, 2024

Haven't found any library for PDF rendering that is both open source and supports .NET Core. This JS library is the most promising one so far:

https://github.com/mozilla/pdf.js

It shouldn't be a problem since we already use NodeServices for ELK.js tree layout calculation. However, I couldn't get the example running on my device out-of-the-box. Needs further experiments and investigation.

from bonsai.

impworks avatar impworks commented on June 12, 2024

The idea of generating document previews was ultimately scrapped. The options were:

  1. pdf.js: requires way too many dependencies and bloats the container (needs native canvas, which must be built from sources, which requires build-essentials etc)
  2. iText7: cannot use legally without converting Bonsai to AGPL
  3. ImageMagick: uses GhostScript for PDF rendering, which is also AGPL

The impact of the feature is way to small to make tackling those troubles reasonable. So this is currently implemented with a static stub image saying "PDF".

Should a lightweight and free PDF rendering library appear, this issue can probably be revisited.

from bonsai.

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.