Galera, desculpa a ignorancia, eu consegui fazer o pdf atraves das bibliotecas do itext, inclui tabela e tudo mais, só que eu não sei aonde ele salva, e não consigo achar no pc, provavelmente ele não salvou em lugar nenhum porque não especifiquei destino.
Ai eu procurei e procurei no google e nada, alguém pode ajudar?
o cóigo segue abaixo (apesar de não ter erro algum)
public String gerarRelatorio() throws Exception {
if (dtInicio == null || dtFinal == null) {
setMensagem("Favor selecionar as datas!");
} else if (nomeArq.length() != 0){
PagamentoDAO pagDAO = getPagamentoDAO();
PagamentoT pagT = new PagamentoT();
List<PagamentoT> listaPagamentos = new Vector<PagamentoT>();
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
pagT.setDataparcela(dtInicio);
pagT.setDatapagamento(dtFinal);
listaPagamentos = pagDAO.getByIntervaloDatas(pagT);
if (listaPagamentos.size() != 0) {
int[] valores = new int[listaPagamentos.size() - 1];
Document documento = new Document();
PdfWriter.getInstance(documento, new FileOutputStream(nomeArq));
documento.open();
documento.add(new Paragraph("Pagamentos de " + sdf.format(dtInicio) + " até " + sdf.format(dtFinal)));
Table tabela = new Table(listaPagamentos.size() + 1, 4);
tabela.addCell("Nome", new Point(0, 0));
tabela.addCell("Data Pagamento", new Point(0, 1));
tabela.addCell("Data Parcela", new Point(0, 2));
tabela.addCell("Valor", new Point(0, 3));
for (int i = 1; i < listaPagamentos.size(); i++) {
ClientesT cliT = new ClientesT();
ClientesDAO cliDAO = getClientesDAO();
cliT.setIdcliente(listaPagamentos.get(i).getIdcliente());
cliT = cliDAO.getByIdcliente(cliT);
if (cliT.getTipo().equals("A")) {
valores[i - 1] = 45;
} else if (cliT.getTipo().equals("B")) {
valores[i - 1] = 40;
} else if (cliT.getTipo().equals("C")) {
valores[i - 1] = 35;
}
tabela.addCell(cliT.getNome(), new Point(i, 0));
tabela.addCell(sdf.format(listaPagamentos.get(i).getDatapagamento()), new Point(i, 1));
tabela.addCell(sdf.format(listaPagamentos.get(i).getDataparcela()), new Point(i, 2));
tabela.addCell(Integer.toString(valores[i - 1]), new Point(i, 3));
if ((i + 1) == listaPagamentos.size()) {
tabela.addCell("Total", new Point(i + 1, 2));
int soma = 0;
for (int c = 0; c < valores.length; c++) {
soma += valores[c];
}
tabela.addCell(Integer.toString(soma), new Point(i + 1, 3));
}
}
documento.add(tabela);
documento.close();
setMensagem("Relatório gerado com sucesso!");
}
} else {
setMensagem("Favor informar o nome do arquivo a ser gerado!");
}
return null;
}