iText doesn't change the number of pixels in an image but you can scale it with
Image.scalePercent() and other methods.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Mukherjee, Sankar
> Sent: Wednesday, September 10, 2008 4:17 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Converting Tiff images to pdfs
>
> How can I resize the tiff images( big or small) before\after
> converting the images to pdfs?
>
> scale_width = 750
> scale_height = 550
> img_x = 30
> img_y = 85
> double width_adjustment = (scale_width - img.scaledWidth())/ 2
> double height_adjustment = (scale_height - img.scaledHeight())/ 2
> img.setAbsolutePosition(img_x + (int) width_adjustment,
>
> img_y + (int) height_adjustment)
> Thanks
>
>
> Sankar Mukherjee
> AXA Equitable
> 212-314-2562
> [EMAIL PROTECTED]
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php