Call us +91 8382980089
// Navigate to your JSF page URL session.getPage().enable(); session.getPage().navigate("http://localhost:8080/app/page.xhtml"); session.getPage().waitForLoadEvent();
PdfPTable table = new PdfPTable(3); table.addCell("Name"); table.addCell("Value"); table.addCell("Date"); convertir jsf a pdf
// Add content document.add(new Paragraph("Report from JSF")); // Navigate to your JSF page URL session
// Generate PDF byte[] pdf = session.getPage().printToPDF(); PdfPTable table = new PdfPTable(3)
// Save or stream response sendPdfResponse(pdf); If you just need a PDF from your data , skip HTML:
HtmlParser.parse(document, new StringReader(htmlContent));