Convertir Archivo Jsf A Pdf New

// Agregar la página al PDF pdfDoc.addPage().addContent(paragraph);

// Renderizar el contenido como HTML Document htmlDoc = Jsoup.parse(jsfContent); String htmlContent = htmlDoc.outerHtml(); convertir archivo jsf a pdf new

// Renderizar el contenido como PDF const pdfBuffer = await page.pdf({ path: 'ruta/al/archivo.pdf' }); // Agregar la página al PDF pdfDoc