Comments (14)
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.
@marceloboeira maybe ;) I'll let you know!
from crystal-libraries-needed.
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.
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.
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.
@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.
It would be awesome to have in crystal something similar to prawn in ruby.
from crystal-libraries-needed.
@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.
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.
@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.
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.
It seems that @rowland is giving it a try [if I understand this correctly].
from crystal-libraries-needed.
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.
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)
- walkdir library HOT 7
- Web scraper HOT 3
- Suggestion: port gem mimemagic from Ruby for significant (and fully platform agnostic) MIME type coverage
- Push notification service
- Port of impersonator gem
- fastimage shard HOT 3
- XMPP / Jabber client shard HOT 2
- Font renderer HOT 7
- Relational Algebra
- Math parser / evaluator HOT 6
- Flashtext port
- Tokyo Tyrant (Tokyo Cabinet server) HOT 4
- Python to Crystal converter HOT 3
- Data-parallelism library
- Algorithmic Trading Library
- integration with a browser recording library: playwright library / puppeteer library / something similar HOT 5
- A rewrite of Centrifuge use crystal
- Kubernetes API HOT 2
- RDF library
- HAML templating Shard HOT 4
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 crystal-libraries-needed.