Forum How do I...?

A command line for reading css from existing file but html from stdin

enygma
Hello,

I am trying to write a java servlet which will render PDF from HTML, whereas the HTML is using a CSS File.
To keep the application very simple, I want to store the css file on the servlet side, because this will never get changed, and want to send the html only to the servlet.

What I need is basically a way of telling prince to read both from an existing file and stdin, or to tell prince to lookup files relative to a specific directory. I could not find out how to use baseurl or remap parameters for this

Can someone help?

Thanks in advance!
mikeday
You can call addStyleSheet() and specify the path to the CSS.
enygma
Ok thanks, I will give it a try.