Printing PDF via JasperReports

122 views
Skip to first unread message

Herman Lintvelt

unread,
Jul 27, 2010, 9:58:27 AM7/27/10
to CTJUG...@googlegroups.com
Hi All

We have a system that is using JasperReports to print or email reports and letters (or export them to PDF, Excel, etc). It has a nice queueing system that can handle the printing of thousands of letters using JasperReports. 
Now we got  a request for taking an existing PDF or Word and print/email that (i.e. as "attachments" that goes with our normal jasperreport letters). 

Does anyone know of a way to take an existing PDF or Word doc and print that using JasperReports? Ideally we do not want to introduce some other printing lib into our existing system... 

Regards,
 Herman


Herman Lintvelt
Polymorph Systems
Twitter: hermanlintvelt
Skype: hermanlintveltza




Jaco Davel

unread,
Jul 28, 2010, 7:20:07 AM7/28/10
to ctjug...@googlegroups.com
Hi Herman

Regarding the PDF side of your problem, I ran into a similar situation with Birt recently.  I ended up using PDFRenderer (https://pdf-renderer.dev.java.net/) to dynamically convert the PDF files into images that can then be easily included in the report.

Regards
Jaco

--
You received this message because you are subscribed to the Google Groups "CTJUG Tech" group.
To post to this group, send email to CTJUG...@googlegroups.com
To unsubscribe from this group, send email to CTJUG-Tech+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/CTJUG-Tech?hl=en
For Cape Town Java User Group home page see http://www.ctjug.org.za/
For jobs see http://jobs.gamatam.com/

Herman Lintvelt

unread,
Jul 28, 2010, 7:29:26 AM7/28/10
to ctjug...@googlegroups.com
That is a possible approach, thanks Jaco.

I've also thought of using iText's pdfcopy function to merge the PDF created by Jasper with the attachment PDF, before emailing it, but then of course I still have the problem of sending this to the printer. You idea of converting to an image might work out better.

H
Reply all
Reply to author
Forward
0 new messages