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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to