Hey,

I am currently working on a program that reads images, crops a certain area
of them, and then inserts the cropped image into the pdf.

I am using "image.getSubImage();" to crop my images, and this is stored as a
bufferedimage. So far all i can do is save the bufferedimage as a png file
and then read it in as an iText.text.Image file.

What I would like to know is if there is a way to directly change the
bufferedimage into iText.text.Image so that it may be inserted into the pdf?
I dont want to keep storing and reading the images as it increases the time
for processing.

Or if there is a workaround or better method that would be very much
appreciated as well.

Thanks,
Ayoub 



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/inserting-a-buffered-image-into-pdf-tp4658886.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to