myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "daniel ccss" <danielcc...@gmail.com>
Subject PDF+JSF question
Date Tue, 04 Mar 2008 17:05:10 GMT
In Struts I do this for join 2 jasperreport pdfs:

PdfReader reader1 = new PdfReader(bytes);
PdfReader reader2 = new PdfReader(bytes2);

PdfCopyFields copy =
new PdfCopyFields(new FileOutputStream(
context.getRealPath("/reportes/Calificación
de Derechos por Beneficio
Familiar - Resolución Nº " +
beneficioForm.getNumeroResolucionBeneficio() + ".pdf")));

copy.addDocument(reader1);
copy.addDocument(reader2);
copy.close();


How can I do this en JSF??

Someone told me that use PdfCopyFields

Have you tried passing the OutputStream from the response to the
PdfCopyFields instead of a FileOutputStream?

Can anyone give me an example of this?

Thanks!!

Mime
View raw message