I have a report that has multiple images in it.  Some of these images have an
image expression of java.net.URL and others of java.awt.Image.  (The
java.awt.Image files are not stored on the disk but in memory when the
report is generated.)  All of the images that are put in the report have a
transparent background.

After creating a JasperPrint for the report I am able to view the report
using JasperViewer and the images in the report look fine.  I am also able
to use the JasperPrintManager and the report looks fine (even when printing
to PDFCreator).  However, when I use the
JasperExportManager.exportReportToPdf() method, the images' transparencies
do not work (they are blackish/redish and the image is indistinguishable). 
I am exporting the report to a pdf, getting the byte[] and saving it to a
file.  The BufferedImages I give the report are of type
BufferedImage.TYPE_INT_ARGB.  Is there a bug with the exportReportToPdf()
that does not handle image transparencies--or is this expected behavior?  It
seems odd that the JasperViewer could handle transparent images but not the
JasperExportManager.

I am using the jasperreports-2.0.4.jar and the iText-2.0.7.jar files.  I am
really stuck on this and thank anyone in advance for further explanation and
help. 

Thanks!!
-- 
View this message in context: 
http://www.nabble.com/Transparent-Images-in-exportToPDF%28%29-tp14815882p14815882.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to