i'm trying to generat pdf files using iText, i want those files to be opened directly on my chrome browser so here is my print method's code:

```
 public void printFicheProjet()
    {
        Integer id=Integer.valueOf((String)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("id_projet_print"));
        Projets projet=projetsService.getProjets(id);
        FacesContext context = FacesContext.getCurrentInstance();
        try {
            HttpServletResponse hsr = (HttpServletResponse) context.getExternalContext().getResponse();
            hsr.setContentType("application/pdf");
            hsr.setHeader("Content-disposition", "inline; filename=\"enseignants.pdf\"");
            Document pdf = new Document(PageSize.A4, 5, 5, 5, 5);
            pdf.setPageSize(PageSize.A4);
            pdf.addHeader("Banque Centrale Populaire", "Fiche Projet");
            ByteArrayOutputStream os = new ByteArrayOutputStream();
            PdfWriter.getInstance(pdf, os);
            pdf.open();            
            Font font = new Font(Font.FontFamily.TIMES_ROMAN, 12, Font.NORMAL);
            Paragraph p = new Paragraph("", font);
            p = new Paragraph("Informations genereaux du projet", font);
            Font gras = new Font(Font.FontFamily.TIMES_ROMAN, 12, Font.BOLD);
            p.setIndentationLeft(30);
            pdf.add(p);
            pdf.close();
            byte[] data = os.toByteArray();
            hsr.getOutputStream().write(data);
            context.responseComplete();
        } catch (Exception e) {}
    }

```

the problem is when i execute this method nothing happens, no error no file on the browser no downloading window...completly nothing. may be something is missing there?