Goodmorning,
   I have a scanned jpeg image in a byte array too big for an A4 or letter page.
How can I reduce this image and print it on a pdf file?
 
e.g.
I've an image 1700x2340 pixel (it was scanned to 200 dpi)
when I pint it on pdf the image was truncate.
 
I use the following code 
 
byte[] imageBuf = image2.toByteArray(); //image
   
PdfContentByte cb = writer.getDirectContent();
 com.lowagie.text.Image img = com.lowagie.text.Image.getInstance(imageBuf);
 img.setAbsolutePosition(0, 0);
 cb.addImage(img);
thanks
 
PAola

Reply via email to