title: How to add external CSS while generating PDF?
body: <p>Currently i am using following code to generate PDF in a JSP file:</p>
  
  <pre><code>response.setContentType("application/force-download");                                                          
  response.setHeader("Content-Disposition", "attachment;filename=reports.pdf");                                                     
  Document document = new Document();                                      
  document.setPageSize(PageSize.A1);
  
  PdfWriter writer = null;                                                      
  
  writer = PdfWriter.getInstance(document, response.getOutputStream());                                         
  
  document.open();                                                                                   
  
  ByteArrayInputStream bis = new ByteArrayInputStream(htmlSource.toString().getBytes());                                                                                      
  
  XMLWorkerHelper.getInstance().parseXHtml(writer, document, bis);                                                                   
  
  document.close();     
  </code></pre>
  
  <p>With this am able to generate PDF.                                        </p>
  
  <p>But i would like to add CSS file while generating PDF.                                </p>
  
  <p>Please Help me...</p>