[ 
https://issues.apache.org/jira/browse/FOP-2536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15322787#comment-15322787
 ] 

Matthias Reischenbacher edited comment on FOP-2536 at 6/9/16 5:23 PM:
----------------------------------------------------------------------

Martin: I tried the attached patch but didn't see a visual difference when 
viewing the generated PDF file with Adobe Acrobat. Perhaps you can attach a 
test case and a before/after PDF file.

I attached an alternative patch which takes a different approach: during the 
layout phase the border traits are analyzed and additional layout blocks are 
created, that span over multiple cells and will paint over the existing table 
borders. This over painting can be activated by setting the following renderer 
option:
userAgent.getRendererOptions().put("overpaint-table-borders", Boolean.TRUE);
The visual output is close to optimal (for my use case), but I'm not too happy 
about having duplicate borders (also PDF file size increases a bit). So I'm 
still thinking about how this could be fixed in a more optimal way.


was (Author: matthias8283):
Alternative patch that "overpaints" table borders

> [PATCH] Varying table border thickness in PDF output
> ----------------------------------------------------
>
>                 Key: FOP-2536
>                 URL: https://issues.apache.org/jira/browse/FOP-2536
>             Project: FOP
>          Issue Type: Improvement
>          Components: renderer/pdf
>            Reporter: Martin Leitner
>         Attachments: Polygon.java, fop-2434-alternative.patch, 
> patch-FOP-2434.diff
>
>
> As already pointed out in a comment to the original issue, this is a problem 
> with the PDF viewers. FOP generates the borders correctly. The viewers render 
> border segments correctly when they are rectangles, but they make mistakes 
> when the segments are more general polygons. In my patch, I am splitting the 
> polygons into rectangles, covering as much of the polygon as possible, write 
> the rectangles to the PDF, then write the remaining triangles.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to