Perhaps you find inspiration in http://www.antennahouse.com/support/qa/QA/2005052701.html
"Because fo:external-graphic is an inline element, it makes line area. The default height of line area is 1.2em, so you should specify line-height="1" for the block. However, even though line-height="1" is specified, a graphic is placed on top of a baseline and there remains a space under the baseline as a result. In order to avoid this, you should specify font-size="0pt", too." Hth Peter > From: fopaddict <[email protected]> > Reply-To: <[email protected]> > Date: Sun, 8 Nov 2009 01:36:49 -0800 (PST) > To: <[email protected]> > Subject: How to avoid vertical space between blocks containing images > > > My .fo code contains nothing but a sequence of images exactly fitting into > page height (because page margins are defined accordingly): > > <fo:block space-before="0mm" space-after="0mm"> > <fo:external-graphic src="url(images/{...@picture})" /> > </fo:block> > > When printing to the page, FOP 0.94 and 0.95 are inserting 2mm vertical > space between each block. Only when I set space-after to -2mm, the output is > as I would expect it normally (exactly no gap between images). Is there > another way to keep FOP from adding space in general? If not: How do I know > how much I have to subtract in order to get zero space? > > -- > View this message in context: > http://old.nabble.com/How-to-avoid-vertical-space-between-blocks-containing-im > ages-tp26252057p26252057.html > Sent from the FOP - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
