Pre-defined PageSize is not accurate enough
- From: "Bruno Lowagie (iText)" <bruno (at) lowagie.com>
- Date: Wed, 08 Nov 2006 10:46:56 +0100
Feng Dihai wrote:
> Please check pre-defined constants in PageSize, some are not accurate enough. It
> caused a little problem in my application.
> For example:
> A3 = new Rectangle(842, 1190);
>
> which should be:
> A3 = new Rectangle(842, 1191);
You're right.
This error has been in iText for ages!
I can't even remember where I found the
values I used. Thanks for reporting it.
> By looking up in http://en.wikipedia.org/wiki/Paper_size, I created a
> uncompleted list as below.
Not all the values in your list were
correct, but I found a page with the
official values in points. I will update
class PageSize in the CVS repository soon.
br,
Bruno
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions