Giter Site home page Giter Site logo

Comments (14)

alexanderadam avatar alexanderadam commented on June 12, 2024 2

In the long term something like hexapdf would be nice. Maybe a port would make sense.

But for the moment I would be happy with any library that works. πŸ˜‰

EDIT: It seems that @gettalong is planning on porting it to Crystal πŸŽ‰

from crystal-libraries-needed.

arambert avatar arambert commented on June 12, 2024 1

@marceloboeira maybe ;) I'll let you know!

from crystal-libraries-needed.

rowland avatar rowland commented on June 12, 2024 1

I've written PDF libraries in Delphi, Ruby and Go, but I've never cracked the most difficult languages to support, such as Chinese. My immediate goal in Crystal is to bind PDFlib, which my company is using anyway, and build a report markup language on top of it. Not as ideal as having an open source, pure Crystal library, but more attainable in the short term.

from crystal-libraries-needed.

alexanderadam avatar alexanderadam commented on June 12, 2024 1

I'm not sure whether this is relevant for anyone but gettalong published the source at https://github.com/gettalong/hexapdf.cr

It's not finished but maybe someone wants to support it (or maybe merge some projects?)

from crystal-libraries-needed.

crisward avatar crisward commented on June 12, 2024

Not sure of your use case, but shelling out to wkhtmltopdf is a good stop gap to go from html > pdf.

from crystal-libraries-needed.

arambert avatar arambert commented on June 12, 2024

@marceloboeira your repository hasn't been updated in the last 3 years (almost). Have you made any progress outside of github?

from crystal-libraries-needed.

arambert avatar arambert commented on June 12, 2024

It would be awesome to have in crystal something similar to prawn in ruby.

from crystal-libraries-needed.

marceloboeira avatar marceloboeira commented on June 12, 2024

@arambert unfortunately not, but my goal was to look at the first commits of prawn and other pdf libs in ruby to create something like an MVP. if you are up for the challenge @arambert we can tackle it together.

from crystal-libraries-needed.

straight-shoota avatar straight-shoota commented on June 12, 2024

Maybe it would be a good aproach to start with an existing graphics library that can emit PDF, for example Cairo. There are already Crystal bindings to it: https://github.com/TamasSzekeres/cairo-cr

from crystal-libraries-needed.

marceloboeira avatar marceloboeira commented on June 12, 2024

@straight-shoota I thought of that too, it's just sometimes a bit hard to distribute given that you need the C libs are coupled. Most of my crystal libraries were focused on learning about things as well, so trying to build from the scratch, but for the sake of productivity I would say we can try to do that for sure.

from crystal-libraries-needed.

straight-shoota avatar straight-shoota commented on June 12, 2024

Even with something like Cairo it's gonna be a long road to get somewhat decent PDF rendering capabilities. You'll still need to implement a lot of things you would expect from an ordinary PDF builder.

from crystal-libraries-needed.

alexanderadam avatar alexanderadam commented on June 12, 2024

It seems that @rowland is giving it a try [if I understand this correctly].

from crystal-libraries-needed.

gettalong avatar gettalong commented on June 12, 2024

Big caveat from my side wrt to the code: It was and is just a proof of concept for benchmarking purposes. The code you see in there is probably equivalent to just the first few weeks of HexaPDF development which started in 2014...

Nonetheless, I'm still dreaming of a standalone HexaPDF executable written in Crystal πŸ˜„ The library part would just be a nice side effect of this.

from crystal-libraries-needed.

alexanderadam avatar alexanderadam commented on June 12, 2024

Nonetheless, I'm still dreaming of a standalone HexaPDF executable written in Crystal

Trust me: everybody here does! πŸ˜‰
Also thank you again for working on PDF libraries in general. πŸ™ As I told you some time ago, PDF is pure magic and complexity to me. πŸ˜‰

I just stumbled about the Go library unipdf which directories are nicely structured and show the complexity that PDF brings. Apart from that I never saw intentionally obfuscated code for commercial use on GitHub… πŸ™„

from crystal-libraries-needed.

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.