You need to clip the image. There are two way to do it: 1 - writing to a PdfContentByte
PdfContentByte cb = writer.getDirectContent(); cb.saveState(); cb.rectangle(...); //the window to show cb.clip(); cb.newpath(); cb.addImage(...); cb.restoreState(); 2 - using a template. Place the image in a template and set the PdfTemplate.setBoundingBox() to the window that will be shown. Best Regards, Paulo Soares > -----Original Message----- > From: Andrea Franco [SMTP:[EMAIL PROTECTED] > Sent: Sunday, February 24, 2002 16:02 > To: [EMAIL PROTECTED] > Subject: [iText-questions] only a part of image > > hi everyone, > > I need to display a part of image and not entire image. > es: I have an image with 550 (width) and 680 height (1/72 inch.). I > would like (oops I need) to display only 546 x 680 (1/72 inch.). > I don't need to scale or resize image but only to display a specified > part. > > how can I solve my problem? > I try to work with image but I don't do anything with success. > Perphas.. I must use table... > > I am not sure if my problem is understandable > Andrea Franco > > > -- > Andrea Franco > Arsretia S.r.l. > Via D. Sansotta, 97 > 00144 Roma (IT) > e-mail: [EMAIL PROTECTED] > Tel.: +39 06 52 27 00 97 > Fax : +39 06 52 27 23 13 > > *** ArsRetia *** << Message: Untitled Attachment >> ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
