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 KS...@iflexsolutions.com on 2004/06/08 14:22:31 UTC
Help me in Page Border
Hi everybody,
I am using <fo:repeatable-page-master-reference
master-reference="only"/> to display multiple pages.
I want a page border to enclose the content so I am using
<fo:block-container> to hold the content of table but with this option
the multiple pages are not displaying. It just display single page.
What could be the reason for this ?
Is anybody have solution for this?
Please help me in this regard .
Is there any alternative other than <fo:block-container> to put page
border?
With regards
Bhaskar
Re: Table header colors.
Posted by Amita Rathore <ar...@in.ibm.com>.
Can't understand how it can be done,
can you please provide a snippet.
Chris Bowditch <bo...@hotmail.com>
06/14/2004 05:08 PM
Please respond to fop-user
To: fop-user@xml.apache.org
cc:
Subject: Re: Table header colors.
Amita Rathore wrote:
>
> I had already tried this, but doing so the padding goes off.
Oh, I see. You might be able to use margin instead, if you dont have
borders
on the cells, then the spacing effect between text should appear the same.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Table header colors.
Posted by Chris Bowditch <bo...@hotmail.com>.
Amita Rathore wrote:
>
> I had already tried this, but doing so the padding goes off.
Oh, I see. You might be able to use margin instead, if you dont have borders
on the cells, then the spacing effect between text should appear the same.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Table header colors.
Posted by Amita Rathore <ar...@in.ibm.com>.
I had already tried this, but doing so the padding goes off.
Chris Bowditch <bo...@hotmail.com>
06/14/2004 04:45 PM
Please respond to fop-user
To: fop-user@xml.apache.org
cc:
Subject: Re: Table header colors.
Amita Rathore wrote:
>
> Here goes the snippet:
>
> <fo:table table-layout="fixed" >
> <fo:table-column column-width="15mm"/>
> <fo:table-column column-width="15mm"/>
> <fo:table-column column-width="28mm"/>
> <fo:table-body>
> <fo:table-row >
> <fo:table-cell padding="2pt"
> text-align="left" >
> <fo:block font-size="10pt"
> background-color="#9999ff">Date</fo:block>
This is your problem. You need to specify background-color on the cell
instead
of the block. That way the whole cell will have the background color, and
not
just the block, whose length may not fill up the row height, as youve
discovered. E.g.
<fo:table-cell padding="2pt" text-align="left"
background-color="#9999ff"><fo:block
font-size="10pt">Date</fo:block></fo:table-cell>
<snip/>
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Table header colors.
Posted by Chris Bowditch <bo...@hotmail.com>.
Amita Rathore wrote:
>
> Here goes the snippet:
>
> <fo:table table-layout="fixed" >
> <fo:table-column column-width="15mm"/>
> <fo:table-column column-width="15mm"/>
> <fo:table-column column-width="28mm"/>
> <fo:table-body>
> <fo:table-row >
> <fo:table-cell padding="2pt"
> text-align="left" >
> <fo:block font-size="10pt"
> background-color="#9999ff">Date</fo:block>
This is your problem. You need to specify background-color on the cell instead
of the block. That way the whole cell will have the background color, and not
just the block, whose length may not fill up the row height, as youve
discovered. E.g.
<fo:table-cell padding="2pt" text-align="left"
background-color="#9999ff"><fo:block
font-size="10pt">Date</fo:block></fo:table-cell>
<snip/>
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Table header colors.
Posted by Amita Rathore <ar...@in.ibm.com>.
Here goes the snippet:
<fo:table table-layout="fixed" >
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="28mm"/>
<fo:table-body>
<fo:table-row >
<fo:table-cell padding="2pt" text-align="left"
>
<fo:block font-size="10pt"
background-color="#9999ff">Date</fo:block>
</fo:table-cell>
<fo:table-cell padding="2pt" text-align="center" >
<fo:block font-size="10pt"
background-color="#9999ff">Employee Name</fo:block>
</fo:table-cell>
<fo:table-cell padding="2pt" text-align="left" >
<fo:block font-size="10pt"
background-color="#9999ff">Home Address/Official Address</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
The address spans over multiple lines.
Chris Bowditch <bo...@hotmail.com>
06/14/2004 04:10 PM
Please respond to fop-user
To: fop-user@xml.apache.org
cc:
Subject: Re: Table header colors.
Amita Rathore wrote:
> Now I am trying to create a table , the header of the table contains 4
> columns. The text for first column is as small as a single word , while
> for second it wraps across two lines.
>
> The problem is that I am trying to put a background color for the header
> cells with a padding of 2pts.
Are you defining the background color on the cell on the block within the
cell? Please provide a snippet of your XSL-FO.
<snip/>
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Table header colors.
Posted by Chris Bowditch <bo...@hotmail.com>.
Amita Rathore wrote:
> Now I am trying to create a table , the header of the table contains 4
> columns. The text for first column is as small as a single word , while
> for second it wraps across two lines.
>
> The problem is that I am trying to put a background color for the header
> cells with a padding of 2pts.
Are you defining the background color on the cell on the block within the
cell? Please provide a snippet of your XSL-FO.
<snip/>
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Table header colors.
Posted by Amita Rathore <ar...@in.ibm.com>.
Thanks Chris for your help with the reusable group of properties.
Now I am trying to create a table , the header of the table contains 4
columns. The text for first column is as small as a single word , while
for second it wraps across two lines.
The problem is that I am trying to put a background color for the header
cells with a padding of 2pts.
The colors across the columns which wrap and which do not wrap is not
uniform. The figure explains it better.
Please suggest.
Thanks,
--------------------------------------------------------------
Amita Rathore
Re: Help me in Page Border
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Chris Bowditch wrote:
> You are right of course. I was too lazy to explain the fact that
> block-containers dont have to be absolutely positioned but FOP doesnt
> implement them.
Non-absolutely positioned block containers are implemented.
They just don't add any useful features compared to plain
blocks.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Help me in Page Border
Posted by Chris Bowditch <bo...@hotmail.com>.
J.Pietschmann wrote:
> Chris Bowditch wrote:
>
>> beacuase block-container is an out of flow object, typically used for
>> absolutely positioning data. As such it does not generate content that
>> flows onto further pages.
>
>
> This is not correct. An absolutely positioned block-container is
> an out-of-flow object and wont break across pages, but otherwise
> a block-container should work the same way a normal block works,
> with the exception that the block-container generates reference
> areas and therefore can be used to change writing modes and reference
> orientation. The FOP maintenance branch implementation isn't complete
> in particular with regards to the latter. It should break across pages
> unless absolutely positioned though. I suspect the OP did this,
> otherwise it wouldn't be of any use for generating the page border
> (height is ignored as well unless absolute positioning is in effect).
You are right of course. I was too lazy to explain the fact that
block-containers dont have to be absolutely positioned but FOP doesnt
implement them.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Help me in Page Border
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Chris Bowditch wrote:
> beacuase block-container is an out of flow object, typically used for
> absolutely positioning data. As such it does not generate content that
> flows onto further pages.
This is not correct. An absolutely positioned block-container is
an out-of-flow object and wont break across pages, but otherwise
a block-container should work the same way a normal block works,
with the exception that the block-container generates reference
areas and therefore can be used to change writing modes and reference
orientation. The FOP maintenance branch implementation isn't complete
in particular with regards to the latter. It should break across pages
unless absolutely positioned though. I suspect the OP did this,
otherwise it wouldn't be of any use for generating the page border
(height is ignored as well unless absolute positioning is in effect).
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Help me in Page Border
Posted by Chris Bowditch <bo...@hotmail.com>.
KS.Bhaskar@iflexsolutions.com wrote:
> I am using <fo:repeatable-page-master-reference
> master-reference="only"/> to display multiple pages.
Okay.
> I want a page border to enclose the content so I am using
> <fo:block-container> to hold the content of table but with this option
> the multiple pages are not displaying. It just display single page.
>
>
>
> What could be the reason for this ?
beacuase block-container is an out of flow object, typically used for
absolutely positioning data. As such it does not generate content that flows
onto further pages.
>
> Is anybody have solution for this?
Dont put your table into a block-container.
> Is there any alternative other than <fo:block-container> to put page border?
Yes, use a background image. Image should be plain white with thin black line
at edges. Size of background image should match body region dimensions at 72 dpi.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org