Forum: Ruby on Rails Princely Plugin:

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Brijesh S. (Guest)
on 2008-12-17 12:28
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.
Craig D. (Guest)
on 2008-12-17 16:25
(Received via mailing list)
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
This topic is locked and can not be replied to.