Bug 40429 - Table borders are always rendered with margin of page-master, table-content is not
Summary: Table borders are always rendered with margin of page-master, table-content i...
Status: CLOSED DUPLICATE of bug 40428
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.20.5
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-07 11:16 UTC by Guy Veraghtert
Modified: 2012-04-01 13:54 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guy Veraghtert 2006-09-07 11:16:48 UTC
When specifying a margin-left of 0 cm on a simple-page-master, a table border is
always rendered with no margin (generating a PDF-file). Even if the table in
question is nested inside a block-element with a margin X > 0cm (or if the table
itself has a margin X), the content of the table however seems to have the margin X.

The following fo-document reproduces the problem:

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="simpleA4" page-height="29.7cm"
page-width="21cm" margin-top="0cm" margin-bottom="0cm" margin-left="0cm"
margin-right="0cm" >
      <fo:region-body></fo:region-body>
    </fo:simple-page-master>
  </fo:layout-master-set>
	
  <fo:page-sequence master-reference="simpleA4">
    <fo:flow flow-name="xsl-region-body" >
      <fo:block margin-left="6cm">
        This is a normal text
        <fo:table table-layout="fixed" border-width="1mm" border-style="solid" >
          <fo:table-column column-width="80mm"/>
          <fo:table-column column-width="80mm"/>
            <fo:table-body >
              <fo:table-row>
                <fo:table-cell>
                  <fo:block>This is the first cell</fo:block>
                </fo:table-cell>
                <fo:table-cell>
                  <fo:block>This is the second cell</fo:block>
                </fo:table-cell>
              </fo:table-row>
            </fo:table-body>
          </fo:table>
        </fo:block>
      </fo:flow>
   </fo:page-sequence>
</fo:root>

What I want to achieve:
 -a background-image covering whole page (no margin)
 -text has to have a margin of 6cm

Is there a work-around?
Comment 1 Chris Bowditch 2006-09-07 11:38:57 UTC

*** This bug has been marked as a duplicate of 40428 ***
Comment 2 Glenn Adams 2012-04-01 13:54:56 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs