News for hackers. Stuff that matters.
Re:PDFs in Pure Ruby by blasdel on Friday January 22, 2010 @02:53AM (#1069307)
I've been using prawn recently on a project, the only feature I'm missing is the ability to read its own output so I can compose operations independently.

It looks like it would be pretty difficult to add -- prawn is implemented as a clever DSL for writing postscript.

Re:PDFs in Pure Ruby by sandal on Friday January 22, 2010 @07:29AM (#1069549)
Prawn does not write postscript, it writes PDF. Though possibly similar in appearance, two different beasts, for sure.

And actually, we have support for reading arbitrary PDF on edge, expect a release in a few weeks :)

http://github.com/yob/prawn/tree/templates_2010

Re:PDFs in Pure Ruby by randy_parker on Friday January 22, 2010 @10:20AM (#1069794)
I use the soon-to-be integrated yob-templates_2010 fork to fill in existing PDF forms. All you have to do is add a ":template => filename" in "pdf = Prawn::Document.new()". You can also supply the template name to the prawn document instance after creating it: "pdf(:template => filename)". (see the prawn forum for details I posted there)