https://issues.apache.org/bugzilla/show_bug.cgi?id=51043
--- Comment #9 from Andreas L. Delmelle <[email protected]> 2011-04-12 14:58:09 EDT --- (In reply to comment #8) > (In reply to comment #3) > > page-width = 210mm = 595275(.5907) > (...) > > => 595275 - 82204 - 2834 = 510237 > Hmm? > 210 * 72000 / 25.4 = 595275.5905512 Yes, for the entire page. 595275.5907 is the result of 210 * 2834.64567 (see fo.properties.FixedLength) Subtracting the left and right margins, gives you 510237 (if all values are first converted, then truncated). > and: rounding page-with should give 595276 mpt Rounding would, but FOP currently just casts from double to int (which is the same as truncating, IIRC) > > Note that when using rounded rather than truncated values, the problem > remains. Indeed, as I pointed out, the values then switch places, that is: 510236 for page 1, and 510237 for page 2, so the difference of 1mpt remains. > Too, this is acceptable for me. I tried 'in' witch gives expected behavior. > > Finally, since 'mm' to 'in' conversion is not based on an integer ratio... Note: FOP does no "mm to in" conversion. All units are converted/normalized to the unofficial "mpt". -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
