Here's an invoice example rendered with pd4ml (www.pd4ml.com)
http://www.extonrails.com/files/bill_of_lading.pdf

I use it for rendering my Resume too, so I can write it with poh (plain ol
html)
http://www.extonrails.com/files/resume.pdf

It's pretty open, pd4ml.  You can provide your own implementation of a
certain java class for modifying the rendering pipeline.  I've hadn't
written any java for 10 years and managed to make it do what I wanted.

I got to spit out a binary stream so I could redirect it into ActionMailer
attachments.

It's been a few months since I used it but it's pretty sweet.

I was writing my templates with Liquid too (http://www.liquidmarkup.org/),
which is fabulous and works great with Merb.

<code>
tpl = Liquid::Template.parse(<html><body>{{foo}}</body></html>)
.
.
.
attachment "application/pdf" do |a|
    a.body = PdfBuilder::html2pdf_stream(tpl.render({"foo" => "bar"})
end
</code>

This PdfBuilder module is the wrapper I made for PdfBuilder.  It's not the
prettiest but it works.

I put it into googlecode:
http://code.google.com/p/pd4ml-ruby/

Chris Scott
ExtJS

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to