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 Mike Trotman <mi...@datalucid.com> on 2003/06/18 19:35:33 UTC
Border confusion
I am confused about where borders are drawn and their priority/sequence.
I thought borders were drawn WITHIN the border rectangle - rather than
centred on it's edge.
I also thought that borders would be non-overlapping for table-cells - if
not is there a way to achieve this?
I have variable numbers of columns in a table and wish to separate groups of
them with a GAP column.
Within the groups there should be no left/right borders - although there
will be top/bottom borders.
At the start / end of a group there should be a GAP column with left/ right
borders.
(I can only detect the end of a group AFTER it is finished - so cannot (and
don't want to) do special processing on 1st / last members of a group.)
I am using fop-0.20.5rc.
The XSL-FO and PDF example produced to illustrate my problem are attached.
Cell Gap 3 has the border joining appearance I would like to achieve for
columns A,C.
I am also surprised that the border joining behaviour for Column A+Gap,
Gap+C are so different.
Any guidance on use of borders or other help would be greatly appreciated.
Thanks.
Mike
Datalucid Limited
email: mike.trotman@datalucid.com
RE: Border confusion
Posted by Mike Trotman <mi...@datalucid.com>.
A correction to my last e-mail.
The border collisions using border-collapse='separate' only seem to occur
when the contents of the cells is empty.
The attached exampled has a '-' in each formerly empty cell - and renders
correctly!
(Interestingly - if the content is empty it looks as if the left and right
hand borders can get switched around).
So - I think I might be able to solve most of my immediate problems by using
a zero-width space or something similar.
Thanks.
-----Original Message-----
From: Mike Trotman [mailto:mike.trotman@datalucid.com]
Sent: 19 June 2003 19:33
To: fop-user@xml.apache.org
Subject: RE: Border confusion
Hi.
I tried border-collapse='separate' and - while this worked OK for a simple
table
It doesn't work for tables with cells spanning rows (see attached - which
also has border-separation='1pt').
I think this could qualify as a bug.
Mike
-----Original Message-----
From: Mike Trotman [mailto:mike.trotman@datalucid.com]
Sent: 19 June 2003 14:36
To: fop-user@xml.apache.org
Subject: RE: Border confusion
Thanks - I'll check on this.
I thought FOP only supported border-collapse='collapse'd tables - but may be
getting this confused with 'fixed' layout.
(And had also forgotten that the collapsed borders model DOES centre borders
on the border rectangle edge.)
I've had a few surprises with table borders in the past which might be why
I've stuck with the collapsed model for so long.
I think the problem was that using separated borders required a lot more
specification of attributes to get the appearance I wanted.
If I make all my borders the same colour and style then I can ignore the
rendering order problem for the moment.
I'm re-reading the border+space behaviours and precedence settings now.
Thanks again.
-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Sent: 18 June 2003 20:47
To: fop-user@xml.apache.org
Subject: Re: Border confusion
Printer Tray selection
Posted by bhaskar ramasamy <cr...@yahoo.com>.
Hai All,
Iam using an FOP to generate a PS file.This PS file will be send to
printer.Currently It works fine without any problem.
But now my current requirement is, this PS file has to be printed using
two different trays.I tried to place the PCL commands in XSL.But all my
efforts gets failed.
Can I pass printer PCL commands from FOP?
Can u suggest me How to print a single PS/PDF file into two different
trays?
For example Take my PS file contains 10 pages.6 pages has to printed
from first Tray.And the remaining 4 pages has to be printed from second
Tray.
Thanks and Regards,
Bhaskar
SMS using the Yahoo! Messenger;Download latest version.
RE: Border confusion
Posted by Mike Trotman <mi...@datalucid.com>.
Hi.
I tried border-collapse='separate' and - while this worked OK for a simple
table
It doesn't work for tables with cells spanning rows (see attached - which
also has border-separation='1pt').
I think this could qualify as a bug.
Mike
-----Original Message-----
From: Mike Trotman [mailto:mike.trotman@datalucid.com]
Sent: 19 June 2003 14:36
To: fop-user@xml.apache.org
Subject: RE: Border confusion
Thanks - I'll check on this.
I thought FOP only supported border-collapse='collapse'd tables - but may be
getting this confused with 'fixed' layout.
(And had also forgotten that the collapsed borders model DOES centre borders
on the border rectangle edge.)
I've had a few surprises with table borders in the past which might be why
I've stuck with the collapsed model for so long.
I think the problem was that using separated borders required a lot more
specification of attributes to get the appearance I wanted.
If I make all my borders the same colour and style then I can ignore the
rendering order problem for the moment.
I'm re-reading the border+space behaviours and precedence settings now.
Thanks again.
-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Sent: 18 June 2003 20:47
To: fop-user@xml.apache.org
Subject: Re: Border confusion
RE: Border confusion
Posted by Mike Trotman <mi...@datalucid.com>.
Thanks - I'll check on this.
I thought FOP only supported border-collapse='collapse'd tables - but may be
getting this confused with 'fixed' layout.
(And had also forgotten that the collapsed borders model DOES centre borders
on the border rectangle edge.)
I've had a few surprises with table borders in the past which might be why
I've stuck with the collapsed model for so long.
I think the problem was that using separated borders required a lot more
specification of attributes to get the appearance I wanted.
If I make all my borders the same colour and style then I can ignore the
rendering order problem for the moment.
I'm re-reading the border+space behaviours and precedence settings now.
Thanks again.
-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Sent: 18 June 2003 20:47
To: fop-user@xml.apache.org
Subject: Re: Border confusion
Mike Trotman wrote:
> I also thought that borders would be non-overlapping for table-cells - if
> not is there a way to achieve this?
There's a collapse="false" for this purpose (look up the correct name
in the spec). Broders on table cells can still yeild a few surprises
though.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Border confusion
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Mike Trotman wrote:
> I also thought that borders would be non-overlapping for table-cells - if
> not is there a way to achieve this?
There's a collapse="false" for this purpose (look up the correct name
in the spec). Broders on table cells can still yeild a few surprises
though.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org