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 Christian Gübeli <ch...@consor.ch> on 2006/01/11 11:24:21 UTC
problems with Margins and tables (fop-0.91beta)
Margin-Properties with Tables
Example Undefined Token (undefined_token.fo):
The combination of margin-left=0.0cm with border-with and padding gives the acroread error undefined token.
Example margins and tables (tableAndMargins.fo):
margin-left="1.0cm" on a Table
The tables border is correct shifted. The content is shifted two time (not the value with the test_align="end").
the same behavior with the margin-left attribute in the parent block.
All this examples are ok with XEP from RenderX.
regards
Christian
Re: problems with Margins and tables (fop-0.91beta)
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Bug fixed in FOP Trunk: http://svn.apache.org/viewcvs?rev=369407&view=rev
On 16.01.2006 09:18:52 Jeremias Maerki wrote:
>
> On 11.01.2006 11:24:21 Christian Gübeli wrote:
> > Margin-Properties with Tables
> >
> >
> > Example Undefined Token (undefined_token.fo):
> >
> > The combination of margin-left=0.0cm with border-with and padding gives the acroread error undefined token.
>
> Confirmed. It's a bug in the PDFRenderer. Some values don't get
> formatted properly. I'm working on a bugfix.
<snip/>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: problems with Margins and tables (fop-0.91beta)
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 11.01.2006 11:24:21 Christian Gübeli wrote:
> Margin-Properties with Tables
>
>
> Example Undefined Token (undefined_token.fo):
>
> The combination of margin-left=0.0cm with border-with and padding gives the acroread error undefined token.
Confirmed. It's a bug in the PDFRenderer. Some values don't get
formatted properly. I'm working on a bugfix.
> Example margins and tables (tableAndMargins.fo):
>
> margin-left="1.0cm" on a Table
> The tables border is correct shifted. The content is shifted two time (not the value with the test_align="end").
>
>
> the same behavior with the margin-left attribute in the parent block.
>
>
> All this examples are ok with XEP from RenderX.
Ok, again, it's the "indent inheritance problem".
Short story: If you want FOP to behave the same way as XEP, you need to
set setBreakIndentInheritanceOnReferenceAreaBoundary(true) on the
FOUserAgent. This switch is currently not available from the
command-line. Note that enabling this switch improves interoperability
with some commercial FO implementations but breaks the specification
compliance.
Long story: See http://wiki.apache.org/xmlgraphics-fop/IndentInheritance
fop-devs, if you see questions with margins and tables or
block-containers it's most likely this problem. I guess I need to write
an FAQ entry now.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org