Simple ruby library to utilise the princexml program. Based on the work done by Subimage Interactive - www.subimage.com
file = "/tmp/file.pdf" prince = Prince.new prince.html2pdf_to_file("<p>hello world</p>", file)
Prince is a computer program that converts XML and HTML into PDF documents. Prince can read many XML formats, including XHTML and SVG. Prince formats documents according to style sheets written in CSS.
There is vast room for improvement. I’ve only done two methods I’ll add to them as I need extra functionality I wanted a gem I could simply include in my sinatra / merb projects
Based on work by seth @ sublog.subimage.com/2008/02/05/prince-rb-update
Copyright © 2009 Nicholas Orr. See LICENSE for details.