harold92 / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

Can't use border-collapse: collapse and -fs-table-paginate: paginate together. #89

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
*** This issue was imported from http://java.net/jira/browse/XHTMLRENDERER-203

It was reported by tcomer on 02.11.2007 13:49:33 +0100 and last updated in the 
previous bug tracker on 13.01.2010 03:05:56 +0100

Found in
Operating System: All
Platform: All

The priority for this issue at migration was Major.

Original description: 
border-collapse: collapse and -fs-table-paginate: paginate cannot be used
together. border-collapse is reset to separate when -fs-table-paginate is set to
paginate

<html>
   <head>
       <style type="text/css">
           .report{
               border-width: 1px;
               border-style: solid;
               border-color: black;
               border-collapse: collapse;
               font-family: sans-serif;
               font-size: 9pt;
               -fs-table-paginate: paginate;
           }

           .reportData{
               border-width: 1px;
               border-style: solid;
               border-color: black;
               text-align: right;
           }

           .reportSummary{
               border-width: 1px;
               border-style: solid;
               border-color: black;
               text-align: right;
               font-weight: bold;
           }

           .reportHeader{
               border-width: 1px;
               border-style: solid;
               border-color: black;
               text-align: center;
               vertical-align: bottom;
               font-weight: bold;
               background-color: #B8D0F8;
           }
       </style>
   </head>
   <body>
         <table class="report">
             <tr>
               <th class="reportHeader">Col 1</th>
               <th class="reportHeader">Col 2</th>
               <th class="reportHeader">Col 3</th>
               <th class="reportHeader">Col 4</th>
               <th class="reportHeader">Col 5</th>
               <th class="reportHeader">Col 6</th>
               <th class="reportHeader">Col 7</th>
             </tr>
             <tr>
               <td class="reportData">Value 1</td>
               <td class="reportData">Value 2</td>
               <td class="reportData">Value 3</td>
               <td class="reportData">Value 4</td>
               <td class="reportData">Value 5</td>
               <td class="reportData">Value 6</td>
               <td class="reportData">Value 7</td>
             </tr>
             <tr>
               <td class="reportSummary">Total 1</td>
               <td class="reportSummary">Total 2</td>
               <td class="reportSummary">Total 3</td>
               <td class="reportSummary">Total 4</td>
               <td class="reportSummary">Total 5</td>
               <td class="reportSummary">Total 6</td>
               <td class="reportSummary">Total 7</td>
             </tr>
         </table>
   </body>
</html>

Original issue reported on code.google.com by pdoubl...@gmail.com on 16 Feb 2011 at 9:55

GoogleCodeExporter commented 8 years ago
pdoubleya wrote on 20.07.2008 19:30:03 +0200:
Set target R9

Original comment by pdoubl...@gmail.com on 16 Feb 2011 at 9:55

GoogleCodeExporter commented 8 years ago
peterbrant wrote on 13.01.2010 03:05:56 +0100:
*** Issue 238 has been marked as a duplicate of this issue. ***

Original comment by pdoubl...@gmail.com on 16 Feb 2011 at 9:55

GoogleCodeExporter commented 8 years ago
Hi,
we're facing the same issue using flyingsaucer 9.0.1 while exporting to PDF. 
The issue is described clearly here:

http://stackoverflow.com/questions/10512324/css-to-pdf-the-css-in-flying-saucer-
fs-table-paginate-result-in-border-collap

According to this post:

https://groups.google.com/forum/?fromgroups=#!topic/flying-saucer-dev/LowYFzOADE
4

the solution seems simple, at first. Is there any drawback?

We found also this workaround:

https://answers.atlassian.com/questions/123562/stylesheet-export-to-pdf-for-tabl
es

but it doesn't work as expected.

Original comment by rst...@gmail.com on 6 Mar 2013 at 4:56