Hi Dmitri, This is great, thanks!
I have a system where I need to render web reports to nicely formatted PDFs. Currently I maintain separate HTML and TeX templates for this purpose (in a Python system) but wanted to have a system that allows me to write hiccup once and have it output HTML & PDF reports. I see that you've used the hiccup syntax but obviously your "tags" are different because screen and print media have different nature. I suppose it would be possible for me to write HTML-hiccup and have a translator that writes pdf-hiccup subset that contains the same content. Or maybe the other way around - write pdf-hiccup and translate to html-hiccup. Do you have an idea of which would be better? I.e. which has richer semantics that could be dropped during translation? Thanks! David 2012/4/19 Vinzent <ru.vinz...@gmail.com>: > Thank you, I was looking for something exactly like that! I'll give it a > try. > > четверг, 19 апреля 2012 г., 7:34:10 UTC+6 пользователь Dmitri написал: >> >> I poked around and noticed that there aren't any libraries for >> creating PDFs, and as I needed to make one for work I decided to open >> source it. I tried to follow Hiccup syntax as I find it to be nice and >> flexible. >> >> https://github.com/yogthos/clj-pdf >> >> The library piggy backs on iText 2.1.7 (the last LGPL release) and >> JFreeChart, it's able to generate documents with text formatting, >> lists, tables, and charts. >> >> I've also made a proof of concept service which accepts JSON formatted >> text and serves up PDFs that's built on top of it. >> >> https://github.com/yogthos/instant-pdf >> >> Feedback and suggestions are welcome. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- David Jagoe davidja...@gmail.com +447535268218 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en