HACKERS GONNA HACK
Getting PrinceXML Working on Heroku

PrinceXML will work on Heroku; here’s how:

  1. Download the princexml source (generic linux)
  2. Compile princexml and include it in your repo. Use whatever your RAILS_ROOT is as the installation directory when asked; this will create two new directories: bin and lib/prince in RAILS_ROOT
  3. Change the absolute paths in the prince schell script that prince creates in: bin/ to /app/… (this is the value of RAILS_ROOT on Heroku)
  4. Place your license.dat file in the RAILS_ROOT/lib/prince/license directory
  5. Commit your changes
  6. Push to Heroku