Skip to content

TheNicholasNick/prince-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrinceXML Library for Ruby

Simple ruby library to utilise the princexml program. Based on the work done by Subimage Interactive - www.subimage.com

Usage

file = "/tmp/file.pdf"
prince = Prince.new
prince.html2pdf_to_file("<p>hello world</p>", file)

PrinceXML

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.

www.princexml.com

Notes

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.

About

Simple ruby library to utilise the princexml program

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages