</a>
<h3 class="underlined_5">A minimal Servlet</h3>
<p>
          Here is a minimal code snippet to demonstrate the basics:
        </p>
<pre class="code">private FopFactory fopFactory = FopFactory.newInstance();
private TransformerFactory tFactory = TransformerFactory.newInstance();
        
public void doGet(HttpServletRequest request,
                   HttpServletResponse response) throws ServletException {
    try {
        response.setContentType("application/pdf");
        Fop fop = fopFactory.newFo