public void mostrarRelatorio(byte[] relatorio, HttpServletResponse response) throws IOException {
ServletOutputStream out;
out = response.getOutputStream(); response.setContentType("application/pdf"); out.write(relatorio); out.flush(); out.close();
}
//definições do boleto
GeradorDeBoleto gerador = new GeradorDeBoleto(boleto);
gerador.geraPDF();