WARNING: This assumes you have Prince 7.0 and considerably modifies the API found in Princely.
Installation:
RPrince is hosted as a gem, here.
gem install rprince
If you have an unusual prince executable install (not on your $PATH or in an environment without which
) be sure to set
RPrince.executable_path
Otherwise, you can just do
RPrince.detect_executable_path
which will use which prince
to configure itself.
Examples:
See sample/sample.rb
Tests:
Didn't write any, mostly on account of the limited scope. The sample.rb covers the core stuff.
Todo:
Add tests for the pdf_helper.rb and for rprince.rb.