News for hackers. Stuff that matters.
Re:PDFs in Pure Ruby by rufo on Thursday January 21, 2010 @10:03PM (#1069002)
Any details you can share? I may have a need of something similar.
Re:PDFs in Pure Ruby by sandal on Thursday January 21, 2010 @10:33PM (#1069037)
The best way to do this is FlyingSaucer via JRuby.

https://xhtmlrenderer.dev.java.net/

Re:PDFs in Pure Ruby by rubeng on Friday January 22, 2010 @12:36AM (#1069185)
I thought about that but I didn't want my entire app running within the JVM.
Re:PDFs in Pure Ruby by sandal on Friday January 22, 2010 @07:31AM (#1069554)
You probably wouldn't have to do that. Check into something like resque: http://github.com/defunkt/resque

(depends upon your needs, of course)

Re:PDFs in Pure Ruby by rubeng on Friday January 22, 2010 @12:35AM (#1069183)
Yeah, I used Flying Saucer: https://xhtmlrenderer.dev.java.net/

Only, I needed to parse plain HTML (not just XHTML) so I'm using TagSoup as the replacement parser: http://home.ccil.org/~cowan/XML/tagsoup/

This combination is awesome.