Tutorial sais:
"If an image is placed without any scaling the the resolution will be 72....."
Is this true for all page size?
If my document layout is A4 or my document layout is A3 standard resolution will be 72. That's true?
----- Original Message ----- From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "Informazioni - R Progetti" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 10, 2004 8:56 PM
Subject: Re: [iText-questions] Print image A4
http://www.lowagie.com/iText/tutorial/ch06.html#scaling
----- Original Message ----- From: "Informazioni - R Progetti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 10, 2004 17:49
Subject: [iText-questions] Print image A4
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
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions