Princely Plugin:

Hi All,

I am using princly plugin to generate pdf with css.
Code is:
respond_to do |format|
format.html
format.pdf do
render :pdf => “paid_invoice”,
:template => “/users/paid_invoice”,
:stylesheets => [“prince”,“sabsebolo_admin”],
:layout => false
end
end
But I got following result .

sh: Usage:: command not found
prince: warning: failed to load external entity “[OPTIONS]”
prince: [OPTIONS]: error: could not load input file
prince: warning: failed to load external entity “file.xml”
prince: file.xml: error: could not load input file
prince: warning: failed to load external entity “Convert”
prince: Convert: error: could not load input file
prince: warning: failed to load external entity “file.xml”
prince: file.xml: error: could not load input file
prince: warning: failed to load external entity “to”
prince: to: error: could not load input file
prince: error: no input documents to process
prince: warning: failed to load external entity “[OPTIONS]”
prince: [OPTIONS]: error: could not load input file
prince: warning: failed to load external entity “doc.html”
prince: doc.html: error: could not load input file
prince: warning: failed to load external entity “Convert”
prince: Convert: error: could not load input file
prince: warning: failed to load external entity “doc.html”
prince: doc.html: error: could not load input file
prince: warning: failed to load external entity “to”
prince: to: error: could not load input file
prince: warning: failed to load external entity “out.pdf”
prince: out.pdf: error: could not load input file
prince: error: no input documents to process
prince: warning: failed to load external entity “[OPTIONS]”
prince: [OPTIONS]: error: could not load input file
prince: warning: failed to load external entity “FILES…”
prince: FILES…: error: could not load input file
prince: warning: failed to load external entity “Combine”
prince: Combine: error: could not load input file
prince: warning: failed to load external entity “multiple”
prince: multiple: error: could not load input file
prince: warning: failed to load external entity “files”
prince: files: error: could not load input file
prince: warning: failed to load external entity “to”
prince: to: error: could not load input file
prince: warning: failed to load external entity “out.pdf”
prince: out.pdf: error: could not load input file
prince: error: no input documents to process
sh: line 5: Try: command not found
sh: line 6: --input=html: command not found

Can neone tell how can I solve this.

Run

$ which prince

to determine where prince is installed. Then run

$ echo $PATH

to determine your $PATH.

The path given by running which should be in the list of paths given
by
$PATH. Is it?

Regards,
Craig