# Princely Plugin:

**URL:** <https://www.ruby-forum.com/t/princely-plugin/155839>\
**Category:** Rails\
**Created:** [December 17, 2008, 11:28am UTC](https://www.ruby-forum.com/t/princely-plugin/155839 "2008-12-17T11:28:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brijesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f475e1/32.png) [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Post date:** [December 17, 2008, 11:28am UTC](https://www.ruby-forum.com/t/princely-plugin/155839/1 "2008-12-17T11:28:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![brijesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f475e1/32.png) [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Post date:** [December 17, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/princely-plugin/155839/2 "2008-12-17T15:25:34Z")

</div>

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
