Thank you, Derk.

I produced the same code and first expected pixels and points to be the 
"same" here. You confirmed it ... and I had to realize that my error was 
elsewhere.

> Rectangle position = new
> Rectangle(document.left(),document.bottom(),document.right(),document.top());
>
> float imgLeft = position.getLeft() + (position.getWidth() -
> image.getScaledWidth())/2;
> float imgBottom = position.getBottom() + (position.getHeight() -
> image.getScaledHeight())/2;
> image.setAbsolutePosition(imgLeft,imgBottom);
>   




-- 
Lars Nagel

Trium Analysis Online GmbH
Hohenlindenerstr. 1
81677 München 

Fon : +49 89 2060269 21
Fax : +49 89 2060269 11
Internet: www.trium.de

Amtsgericht Muenchen, HRB 134012
Managing Directors:
Dr. Martin Daumer, Michael Scholz


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to