scaling-method is not evaluated by FOP, so it can't be the problem. Images are always embedded as is and scaled by the viewer/RIP. That means that the scaling is always target-device-specific.
The gaps above and below of the images come from line-building, i.e. from the line-height property among other factors. I was asked about the same problem by the manufacturer of an FO editor. I still owe him a reponse. :-( Anyway, I think we still have a bug in line-building. I'll have to investigate a little further to come up with a test case. But I think I found a work-around that works for now: <fo:block background-color="yellow" font-size="0pt"> <fo:external-graphic content-height="40pt" src="url('http://www.apache.org/images/asf_logo_wide.gif')"/> </fo:block> Setting font-size to 0pt does the trick because it doesn't create any half-leading trait, or rather a "0mpt" value. In theory, the problem should be solved like this, I think: <fo:block background-color="yellow" line-height="1.0"> <fo:external-graphic content-height="40pt" src="url('http://www.apache.org/images/asf_logo_wide.gif')" alignment-baseline="after-edge"/> </fo:block> If I'm not mistaken, line-height="1.0" should in theory not lead to a half-leading trait but that doesn't seem to happen right now. The alignment-baseline is optional here as there are no characters in this block that could have a descender because external-graphic is normally aligned with the "baseline" AFAIK. But if there were additional characters, this might be necessary depending on the expectations. Maybe Manuel has some additional insight here. I'm not the line-building specialist. HTH On 10.12.2005 22:20:23 Andreas L Delmelle wrote: > On Dec 10, 2005, at 13:52, Dirk Bromberg wrote: > > > Here is my fo sample. And a screenshot form the pdf. > > I want the image in the "xsl-region-before" to scale the full > > height of the cell (table) but there is 1mm border above and 2 mm > > border below the image remaining. Are there default marigns > > paddings or borders at cells block or tables? > > > > Please tell me how to make the "logo" fits image to the full table > > height. > > The most likely cause seems to be "scaling-method". If that property > set to "auto" (= initial value) then the formatter may choose the > method. I'm guessing all three tested formatters default to "integer- > pixels", which could cause rounding in determining the number of > device pixels... > > As a workaround, maybe you could try making the table-cell's > background-color black, which would at least create the desired > appearance. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]