You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2004/09/09 16:03:58 UTC

DO NOT REPLY [Bug 31144] New: - [patch][pdf] When adjacent borders are of different colors, join them along a dialgonal border.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31144>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31144

[patch][pdf] When adjacent borders are of different colors, join them along a dialgonal border.

           Summary: [patch][pdf] When adjacent borders are of different
                    colors, join them along a dialgonal border.
           Product: Fop
           Version: all
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: pdf renderer
        AssignedTo: fop-dev@xml.apache.org
        ReportedBy: atagunov@ipmouse.com


If top border is red and left is green what should the corner be like? Red or green? It is not specified by any spec. By a good solution found in html browsers is to divide the corcer by diagonal and make upper triangle red and left green.

Here's java code that does this for PDF renderer.

_ it is a patch against fop-0_20_5 _

BUT: the patch contains a separate class BorderPainter, take it out and use in MAIN.

The code is quite simple but was a bit tricky and tiresome to write - so I want to share it