You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Benjamin Wohlwend <bw...@piquadrat.ch> on 2007/08/15 13:44:20 UTC

margin on inline elements

Hi,

I'm evaluating FOP 0.93 since a few days (together with CSSToXSLFO for HTML->PDF
conversion) and have to say that I'm really impressed so far. But there are a
few problems that prevent my documents from really looking great. One particular
problem is that FOP seems to ignore margins on inline elements. An example:

|        <fo:block>
|          <fo:inline margin-left='0pt' margin-right='100.0px'>foo</fo:inline>bar
|        </fo:block>

This appears in the PDF as "foobar". renderX's XEP renders it as expected (by
me, anyway) as "foo_______bar".

I skimmed through the XSL-FO spec but couldn't find out if margins are even
allowed on inline elements.

Is this expected behaviour? 

Best regards,

Benjamin Wohlwend  


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


Re: margin on inline elements

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Aug 15, 2007, at 13:44, Benjamin Wohlwend wrote:

Hi

> I'm evaluating FOP 0.93 since a few days (together with CSSToXSLFO  
> for HTML->PDF
> conversion) and have to say that I'm really impressed so far. But  
> there are a
> few problems that prevent my documents from really looking great.  
> One particular
> problem is that FOP seems to ignore margins on inline elements.

This is indeed an unimplemented feature.

A possible workaround may be to use a fo:leader instead:

<fo:block>
   <fo:leader leader-length="100px" leader-pattern="space" />foo
</fo:block>

IIC, this should lead to the same result.

Cheers

Andreas


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