Hi Christoph,

If I'm understanding correctly, this issue is caused by FOP taking into 
consideration line spacing even when there's no text. Try setting the parent 
block to have font-size="0" and that should resolve the problem.

If that doesn't resolve it or do what you want it to, it might be best to post 
a sample FO file to show the problem and I'll take another look.

Regards,

Robert Meyer
________________________________
From: cwulf<mailto:christoph.w...@jpool.net>
Sent: ‎10/‎08/‎2013 12:49
To: fop-users@xmlgraphics.apache.org<mailto:fop-users@xmlgraphics.apache.org>
Subject: Eliminating block's padding around an external-graphic

Hi,

I'm placing images with different heights into table rows. The highest image
within a row should define the height of the row. All other images are
centered vertically. The table-cells get a background-color, so when an
image's height is less than the height of the highest image of its row, one
should see the background-color above and below that image.

But I've noticed the background-color above and below the highest image,
too. Especially in rows with just images of definitely same size (where the
background-color never should appear) I can see a padding to the top and a
larger padding to the bottom.

So I made a simple test without a table:



The result is:

<http://apache-fop.1065347.n5.nabble.com/file/n39020/screen.png>

Altough *padding*, *margin* (and some other properties I tried to fix this)
are set to *0* for the *block* and the *external-graphic* there is still
some space above and below the image.

The result I expected would be something like this:

<http://apache-fop.1065347.n5.nabble.com/file/n39020/nominal.png>

What properties can I add to eliminate that (cyan) space above and below the
image?

Thx a lot in advance,
Christoph

P.S.: I am using FOP 1.0



--
View this message in context: 
http://apache-fop.1065347.n5.nabble.com/Eliminating-block-s-padding-around-an-external-graphic-tp39020.html
Sent from the FOP - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to