Tutorial - Silent Print and View RTF from Browser
It lets you control printing and viewing of the documents by way of passing the parameters name
and value as part of the URL.
This is a self sufficient WAR archive and do not need any other software for its functioning.
In most cases this sample will be good enough to solve your need to silent print or view RTF documents.
However, you might consider learning more about the parameters and how to
change them so you can change one or more of the existing behavior. In addition this tutorial
did address some of the basic questions and queries about deploying and customizing it.