Hello,

Sorry for this very late reply. Thanks your answer, I didn't think about this. The line-stacking-strategy="font-height" property with adapted padding on blocks works fine if the inline graphic is on the first line of the content generated by the block inside the fo:list-block, but if it is on the second line, the graphic overflows the above line(as expected). I didn't have time to search any further, I'll post something if I find a way.

Thanks.

Maxime Bégnis.


Le 26/07/2010 11:17, Jeremias Maerki a écrit :
Not really. The only thing I can come up is
line-stacking-strategy="font-height" on both blocks but then you may
have to scale down the graphic a bit. "relative-align" is indeed the
property that would need to be implemented for this.

On 22.07.2010 12:35:29 Maxime Bégnis wrote:
Hi all,

Considering this code excerpt :

<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>2.</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>Inline graphic
<fo:external-graphic src="url(black_square.svg)"
                   width="5mm" height="auto"
                   content-width="scale-to-fit"
                   content-height="scale-to-fit" />
          some text.
</fo:block>
</fo:list-item-body>
</fo:list-item>

In the resulting PDF, the baselines of the fo:list-item-label and the
fo:list-item-body are not aligned vertically. I get something like this :

2.                 /--\
Inline graphic \__/ some text.

While I would like to get :

                     /--\
2. Inline graphic \__/ some text.

I understood from the XSL-1.1 specification that I should use the
relative-align="baseline" property on the fo:list-block. But, according
to http://xmlgraphics.apache.org/fop/compliance.html, this property is
not supported by any version of FOP.

I tried the attached test file with FOP 1.0 and 0.95 with the same result.

Does anyone knows a trick to get these baselines aligned vertically?

Thanks a lot.

Maxime Bégnis



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

<<attachment: maxime.vcf>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to