I'm adding iText to an older application that uses 1/10ths of inches as a
measurement for locating text on a page. I need to convert this to points for
locating in my PDF document.

This is what I'm doing now. It's expanded out just for my own readability. I'm
assuming that an inch is 72 points.

        int nx = (int)(x * 7.2 * 10);
        int ny = (int)(height - (y * 7.2 * 10));

It works fine at first, but as I go down the page it locates further and
further down from where it should. Is 72 points per inch correct? Does anyone
know a better way to do this conversion?

--
Ben Sinclair
[EMAIL PROTECTED]


_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to