FOP 0.95 and border-collapse

View: New views
2 Messages — Rating Filter:   Alert me  

FOP 0.95 and border-collapse

by crischprolch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm using FOP 0.95 to build PDF files from XML files. When I am drawing tables, I would like that all borders have the same size (ie I don't want that some borders be in double) so I value the "border-collapse" attribute on the "fo:table" element to "collapse". But there are some drawbacks :



here the entire table :



And the code :

<code>
<fo:table table-layout="fixed" width="100%" border-collapse="collapse">
   <fo:table-column column-width="20%"/>
   <fo:table-column column-width="30%"/>
   <fo:table-column column-width="50%"/>
   <fo:table-header>
      <fo:table-row>
         <fo:table-cell border="1.5pt solid #0000FF" number-columns-spanned="2">
            <fo:block>1 - VOS COORDONNEES</fo:block>
         </fo:table-cell>
         <fo:table-cell>
            <fo:block/>
         </fo:table-cell>
      </fo:table-row>
   </fo:table-header>
   <fo:table-body border="1.5pt solid #0000FF">
      <fo:table-row>
         <fo:table-cell number-columns-spanned="3">
            <fo:block>Titre</fo:block>
         </fo:table-cell>
      </fo:table-row>
      <fo:table-row>
         <fo:table-cell number-columns-spanned="3">
            <fo:block>Nom</fo:block>
         </fo:table-cell>
      </fo:table-row>                                                        
   </fo:table-body>
</fo:table>
</code>

Thanks for your help...

Re: FOP 0.95 and border-collapse

by crischprolch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For information, it seems to be a FOP bug : https://issues.apache.org/bugzilla/show_bug.cgi?id=45924