Re: Hiccup - HTML - PNG

2012-10-20 Thread nchurch
Thank you gentlemen, I'm trying out PhantomJS and it looks good so
far; will let you know how the full project goes.

On Oct 17, 4:18 am, David Powell djpow...@djpowell.net wrote:
 I'm using PhantomJS http://phantomjs.org/
 It is a headless WebKit build that can render webpages as png or pdf,
 amongst other stuff.  It isn't a java lib though - it is a command-line
 executable.

 Not HTML, but possibly useful, I also use Batik 
 http://xmlgraphics.apache.org/batik/ to render svg generated in clojure to
 png.

 --
 Dave

-- 
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


Re: Hiccup - HTML - PNG

2012-10-17 Thread Pablo
Hi Nick,

I used Flying Saucer to convert XHTML to PDF and was very happy with it.
It can apparently render to PNG as well: 
http://flyingsaucerproject.github.com/flyingsaucer/r8/guide/users-guide-R8.html#xil_29

Cheers,
Pablo

On Wednesday, October 17, 2012 1:29:57 AM UTC+2, nchurch wrote:

 Has anyone generated PNGs (or any image) from Hiccup in Clojure?  I 
 see an older Java library for this: 

 http://code.google.com/p/java-html2image/ 

 Curious to hear about any experience with this library, or if there is 
 a better solution out there. 

 Thanks, 

 Nick. 


-- 
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

Re: Hiccup - HTML - PNG

2012-10-17 Thread David Powell
I'm using PhantomJS http://phantomjs.org/
It is a headless WebKit build that can render webpages as png or pdf,
amongst other stuff.  It isn't a java lib though - it is a command-line
executable.

Not HTML, but possibly useful, I also use Batik 
http://xmlgraphics.apache.org/batik/ to render svg generated in clojure to
png.

-- 
Dave

-- 
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

Hiccup - HTML - PNG

2012-10-16 Thread nchurch
Has anyone generated PNGs (or any image) from Hiccup in Clojure?  I
see an older Java library for this:

http://code.google.com/p/java-html2image/

Curious to hear about any experience with this library, or if there is
a better solution out there.

Thanks,

Nick.

-- 
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