Hi, I would like to align text precisely in the middle of a background image. I have tried it this way, but with no luck:
writer.getDirectContentUnder().addImage(img, img.scaledWidth(), 0, 0, img.scaledHeight(), rect.left(), rect.bottom() - ((img.scaledHeight() - rect.height()) / 2)); Can you please tell me whats wrong ? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
