shop12 Posted July 20, 2009 Share Posted July 20, 2009 Just like how we embed a image file in jrxml files, is there a way to embed a pdf file?The content is static so, I am trying to see if I can just refer to this file instead of creating a jrxml file for it.Please help! Thanks Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted July 20, 2009 Share Posted July 20, 2009 Not sure what you mean. If you want to include a PDF file in a report (just like you do with an image), you can not do it.The only thing you can do is to work with the JasperReports API to merge PDF files (this means that you can insert some pages into the original PDF). This does not allow you to populate portions of pages, but just divide and merge documents.Giulio Link to comment Share on other sites More sharing options...
shop12 Posted July 21, 2009 Author Share Posted July 21, 2009 Thank Giulio.I have a 8 page pdf document which is all static data. So I was wondering instead of creating jrxml files and feeding the data using a Resource bundle, if I could just embedd it like in case of an image, it would be easy.So are you saying that we cannot do it using JasperReports? Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted July 21, 2009 Share Posted July 21, 2009 Right. But what you can do is:1. Generate a report2. Export from page 1 to X (1_x.pdf)3. Export from page X to end (x_end.pdf)4. Merge: 1_x.pdf, your.pdf, x_end.pdfto obtain final_report.pdfGiulio Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now