Hi,
i create my PDF with jasperreports 2.0.0 .
Can i add a existing PDF to my generated PDF???
Thanks!!
i create my PDF with jasperreports 2.0.0 .
Can i add a existing PDF to my generated PDF???
Thanks!!
5 Answers:
Posted on January 9, 2008 at 11:29pm
Hi,
isn't there a standardized way to use iText to read a PDF and turn it into an object that implements JRRenderable?
I understand, that Jasper is not a PDF library. But isn't it a basic requirement for a report to have PDF images in them (like for company logos)?
Regards
Moritz
isn't there a standardized way to use iText to read a PDF and turn it into an object that implements JRRenderable?
I understand, that Jasper is not a PDF library. But isn't it a basic requirement for a report to have PDF images in them (like for company logos)?
Regards
Moritz
Posted on January 10, 2008 at 10:50am
As iText is a needed library in Jasper you can easily merge PDFs with it... therefore I wrote a simple method that get some PDF-Files (where ever from) and merges them to one single PDF File...
We need that for example to merge the JasperReport Output as PDF with an existing CAD drawing exported to PDF also and print it as one single PrintJob for DuplexPrinter or to send it via eMail as one single PDF file (so report + technical document from CAD).
We need that for example to merge the JasperReport Output as PDF with an existing CAD drawing exported to PDF also and print it as one single PrintJob for DuplexPrinter or to send it via eMail as one single PDF file (so report + technical document from CAD).
Code: |
public static File getMergePdfFile(ArrayList<File> sourcePdfs, File destFile) {<br /> ...<br /> }</td></tr></tbody></table><br /> <br /> a few things Jasper can't <b>and </b>shouldn't do are for your own brain! :P <br /> <br /> And by the way.... logos shouldn't be in PDF format as this is more a DOCUMENT format and not an IMAGE format... Supported images are JPG / GIF / PNG...<br /> <br /> just my two cents<br /> C-Box<br>Post edited by: CBox, at: 2008/01/10 10:51 |
Posted on January 10, 2008 at 11:04am
The thing that I actually want to do is place a vector based image in the report. Be it PDF (since it's so wide spread) or whatever.
I simply need to produce high quality reports with logos that are dynamically located. So stamping in a second step is not a good option.
I think a good reporting tool should support placing vector based images - especially if the foundation (iText) is already there.
So my question remains: isn't there a way to turn a vector based image (PDF, EPS whatever) into a JRRenderable?
Regards
Moritz
I simply need to produce high quality reports with logos that are dynamically located. So stamping in a second step is not a good option.
I think a good reporting tool should support placing vector based images - especially if the foundation (iText) is already there.
So my question remains: isn't there a way to turn a vector based image (PDF, EPS whatever) into a JRRenderable?
Regards
Moritz
Posted on January 10, 2008 at 3:19pm
meisner wrote:
You can use SVG images via Batik. I don't know whether there are Java libraries that are able to draw/render PDF or EPS images.
Regards,
Lucian
So my question remains: isn't there a way to turn a vector based image (PDF, EPS whatever) into a JRRenderable? |
You can use SVG images via Batik. I don't know whether there are Java libraries that are able to draw/render PDF or EPS images.
Regards,
Lucian