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 mcevikce <mc...@gmail.com> on 2006/06/21 15:47:53 UTC

Re: Disappearing table-header

I am having the same problem with block-container. Would you be able to tell
me when this fix will be released? Is there a way to download the fix from
the SVN?
--
View this message in context: http://www.nabble.com/Disappearing-table-header-t1594378.html#a4974602
Sent from the FOP - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Disappearing table-header

Posted by Gilles Beaugeais <gb...@voila.fr>.
> I've just been able to fix the bug. It was indeed something different
> from what I fixed in May although with the same symptom. Your test file
> now shows the table headers as it should.
> 
> http://svn.apache.org/viewvc?rev=428011&view=rev
> 

Thanks very much,
I have downloaded the last version, tested it and it works well.
The Bug #40122 in Bugzilla can be closed.

Gilles Beaugeais.



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Disappearing table-header

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I've just been able to fix the bug. It was indeed something different
from what I fixed in May although with the same symptom. Your test file
now shows the table headers as it should.

http://svn.apache.org/viewvc?rev=428011&view=rev

On 25.07.2006 05:34:41 Gilles Beaugeais wrote:
> >
> 
> Sorry to ask you again but did someone manage to reproduce my problem 
> (table header dsappear when table in inside a list) with the fo content 
> of the previous post ?
> If yes, is there any workaround keeping the table inside the list ? Or 
> will this corrected in a near future ?
> 
> Thanks in advance,
> 
> Gilles Beaugeais.
> 
> > > As I explained in this thread I've applied a fix. If you still have a
> > > problem, you'll have to provide an FO example so we can reproduce.
> > > Otherwise, we can't fix anything.
> > 
> > I put the fo content at the end of this post cause I don't find 
> > the way of attaching something with gmane.
> > 
> > > TIFF Problem: Please provide an small example TIFF file that exhibits
> > > the problem and send in a patch against FOP Trunk so I don't have to
> > > guess at what you've changed. Thanks.
> > 
> > I have created a patch in Bugzilla (Bug 40062) with diff file and TIFF test 
> > file in attachments. It's maybe not clean (the TIFFFaxDecoder flipTable 
> > function should be used directly) but it works in my case.
> > 
> > Thanks for help,
> > 
> > Gilles Beaugeais.



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Disappearing table-header

Posted by Gilles Beaugeais <gb...@voila.fr>.
>

Sorry to ask you again but did someone manage to reproduce my problem 
(table header dsappear when table in inside a list) with the fo content 
of the previous post ?
If yes, is there any workaround keeping the table inside the list ? Or 
will this corrected in a near future ?

Thanks in advance,

Gilles Beaugeais.

> > As I explained in this thread I've applied a fix. If you still have a
> > problem, you'll have to provide an FO example so we can reproduce.
> > Otherwise, we can't fix anything.
> 
> I put the fo content at the end of this post cause I don't find 
> the way of attaching something with gmane.
> 
> > TIFF Problem: Please provide an small example TIFF file that exhibits
> > the problem and send in a patch against FOP Trunk so I don't have to
> > guess at what you've changed. Thanks.
> 
> I have created a patch in Bugzilla (Bug 40062) with diff file and TIFF test 
> file in attachments. It's maybe not clean (the TIFFFaxDecoder flipTable 
> function should be used directly) but it works in my case.
> 
> Thanks for help,
> 
> Gilles Beaugeais.
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Disappearing table-header

Posted by Gilles Beaugeais <gb...@voila.fr>.
> As I explained in this thread I've applied a fix. If you still have a
> problem, you'll have to provide an FO example so we can reproduce.
> Otherwise, we can't fix anything.

I put the fo content at the end of this post cause I don't find 
the way of attaching something with gmane.
 
> TIFF Problem: Please provide an small example TIFF file that exhibits
> the problem and send in a patch against FOP Trunk so I don't have to
> guess at what you've changed. Thanks.

I have created a patch in Bugzilla (Bug 40062) with diff file and TIFF test 
file in attachments. It's maybe not clean (the TIFFFaxDecoder flipTable 
function should be used directly) but it works in my case.

Thanks for help,

Gilles Beaugeais.



<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="page-master" 
                           page-height="11in" page-width="8.5in" 
                           margin-top="0cm" margin-bottom="0cm" 
                           margin-left="0cm" margin-right="0cm">
      <fo:region-body margin-top="2cm" margin-bottom="2cm" 
                      margin-left="1.5cm" margin-right="1.5cm"/>
      <fo:region-before region-name="pages-before" extent="2cm"/>
      <fo:region-after region-name="pages-after" extent="1.5cm"/>
    </fo:simple-page-master>
    <fo:page-sequence-master master-name="pages">
      <fo:repeatable-page-master-reference master-reference="page-master"/>
    </fo:page-sequence-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="pages" text-align="justify"
                    font-size="10pt" font-family="Helvetica">
    <fo:static-content flow-name="pages-before">
      <fo:block margin-top="0.2cm" start-indent="1.5cm">header</fo:block>
    </fo:static-content>
    <fo:static-content flow-name="pages-after">
      <fo:block margin-top="0.5cm" start-indent="1.5cm">footer</fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
      <fo:block padding-bottom="21cm">space to fill page</fo:block>
      <fo:block>
        <fo:list-block provisional-distance-between-starts="1.4cm" 
                       provisional-label-separation="0cm">
<fo:list-item>
  <fo:list-item-label end-indent="label-end()">
    <fo:block>1.</fo:block>
  </fo:list-item-label>
  <fo:list-item-body start-indent="body-start()">
    <fo:block>1st list item</fo:block>
  </fo:list-item-body>
</fo:list-item>
<fo:list-item>
  <fo:list-item-label end-indent="label-end()">
    <fo:block>2.</fo:block>
  </fo:list-item-label>
  <fo:list-item-body start-indent="body-start()">
    <fo:block>2nd list item (containing a table - problem)</fo:block>
    <fo:block start-indent="0cm">
      <fo:table border-collapse="separate" width="100%">
        <fo:table-column column-width="50%"/>
        <fo:table-column column-width="50%"/>
        <fo:table-header font-weight="bold">
          <fo:table-row>
            <fo:table-cell number-columns-spanned="2" 
                           text-align="center">
              <fo:block>Header cell (span)</fo:block>
            </fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell>
              <fo:block>Header cell (col 1)</fo:block>
            </fo:table-cell>
            <fo:table-cell>
              <fo:block>Header cell (col 2)</fo:block>
            </fo:table-cell>
          </fo:table-row>
        </fo:table-header>
        <fo:table-body>
          <fo:table-row>
            <fo:table-cell><fo:block>first</fo:block></fo:table-cell>
            <fo:table-cell><fo:block>row</fo:block></fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell><fo:block>second</fo:block></fo:table-cell>
            <fo:table-cell><fo:block>row</fo:block></fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell><fo:block>third</fo:block></fo:table-cell>
            <fo:table-cell><fo:block>row</fo:block></fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell><fo:block>fourth</fo:block></fo:table-cell>
            <fo:table-cell><fo:block>row</fo:block></fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell><fo:block>fifth</fo:block></fo:table-cell>
            <fo:table-cell><fo:block>row</fo:block></fo:table-cell>
          </fo:table-row>
          <fo:table-row>
            <fo:table-cell><fo:block>sixth</fo:block></fo:table-cell>
            <fo:table-cell><fo:block>row</fo:block></fo:table-cell>
          </fo:table-row>
        </fo:table-body>
      </fo:table>
    </fo:block>
  </fo:list-item-body>
</fo:list-item>
        </fo:list-block>
      </fo:block>
      <fo:block padding-bottom="16.5cm" 
                padding-top="2cm">space to fill page</fo:block>
      <fo:block>
        <fo:block>simple block (containing a table - OK)</fo:block>
<fo:table border-collapse="separate" width="100%">
  <fo:table-column column-width="50%"/>
  <fo:table-column column-width="50%"/>
  <fo:table-header font-weight="bold">
    <fo:table-row>
      <fo:table-cell number-columns-spanned="2" 
                     text-align="center">
        <fo:block>Header cell (span)</fo:block>
      </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
      <fo:table-cell>
        <fo:block>Header cell (col 1)</fo:block>
      </fo:table-cell>
      <fo:table-cell>
        <fo:block>Header cell (col 2)</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-header>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell><fo:block>first</fo:block></fo:table-cell>
      <fo:table-cell><fo:block>row</fo:block></fo:table-cell>
    </fo:table-row>
    <fo:table-row>
      <fo:table-cell><fo:block>second</fo:block></fo:table-cell>
      <fo:table-cell><fo:block>row</fo:block></fo:table-cell>
    </fo:table-row>
    <fo:table-row>
      <fo:table-cell><fo:block>third</fo:block></fo:table-cell>
      <fo:table-cell><fo:block>row</fo:block></fo:table-cell>
    </fo:table-row>
    <fo:table-row>
      <fo:table-cell><fo:block>fourth</fo:block></fo:table-cell>
      <fo:table-cell><fo:block>row</fo:block></fo:table-cell>
    </fo:table-row>
    <fo:table-row>
      <fo:table-cell><fo:block>fifth</fo:block></fo:table-cell>
      <fo:table-cell><fo:block>row</fo:block></fo:table-cell>
    </fo:table-row>
    <fo:table-row>
      <fo:table-cell><fo:block>sixth</fo:block></fo:table-cell>
      <fo:table-cell><fo:block>row</fo:block></fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Disappearing table-header

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
As I explained in this thread I've applied a fix. If you still have a
problem, you'll have to provide an FO example so we can reproduce.
Otherwise, we can't fix anything.

TIFF Problem: Please provide an small example TIFF file that exhibits
the problem and send in a patch against FOP Trunk so I don't have to
guess at what you've changed. Thanks.

On 16.07.2006 22:11:13 Gilles Beaugeais wrote:
> > This fix will be released with the next release of FOP. We're currently
> > discussing that topic so I cannot tell when that will be.
> > 
> > In the meantime you can download FOP Trunk from SVN. Instructions are
> > found here:
> > http://xmlgraphics.apache.org/fop/download.html#source
> > and here:
> > http://xmlgraphics.apache.org/fop/dev/tools.html#svn
> > 
> > On 21.06.2006 15:47:53 mcevikce wrote:
> > > 
> > > I am having the same problem with block-container. Would you be able to tell
> > > me when this fix will be released? Is there a way to download the fix from
> > > the SVN?
> > 
> 
> Hello,
> 
> I have exactly the same problem as described in this thread, except 
> that my table is inside a list not in a block-container.
> When a table is splitted on several pages, the header appears only on 
> the last page.
> I use a version downloaded on svn a few days ago.
> 
> Another point, not related to the previous one, on publishing TIFF with FOP:
> I think I have detected a bug inside org.apache.fop.image.TIFFImage.java
> The loadOriginalData() function does not take into account the 
> TIFF_FILL_ORDER field (when equals 2, byte table should be flipped - as 
> in xmlgraphics TIFFFaxDecoder class).
> [To correct this, I have added a class variable, which I set in decodeImage()
> and test in loadOriginalData() to flip the byte table.]
> Hope this helps.

Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Disappearing table-header

Posted by Gilles Beaugeais <gb...@voila.fr>.
> This fix will be released with the next release of FOP. We're currently
> discussing that topic so I cannot tell when that will be.
> 
> In the meantime you can download FOP Trunk from SVN. Instructions are
> found here:
> http://xmlgraphics.apache.org/fop/download.html#source
> and here:
> http://xmlgraphics.apache.org/fop/dev/tools.html#svn
> 
> On 21.06.2006 15:47:53 mcevikce wrote:
> > 
> > I am having the same problem with block-container. Would you be able to tell
> > me when this fix will be released? Is there a way to download the fix from
> > the SVN?
> 

Hello,

I have exactly the same problem as described in this thread, except 
that my table is inside a list not in a block-container.
When a table is splitted on several pages, the header appears only on 
the last page.
I use a version downloaded on svn a few days ago.

Another point, not related to the previous one, on publishing TIFF with FOP:
I think I have detected a bug inside org.apache.fop.image.TIFFImage.java
The loadOriginalData() function does not take into account the 
TIFF_FILL_ORDER field (when equals 2, byte table should be flipped - as 
in xmlgraphics TIFFFaxDecoder class).
[To correct this, I have added a class variable, which I set in decodeImage()
and test in loadOriginalData() to flip the byte table.]
Hope this helps.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Disappearing table-header

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
This fix will be released with the next release of FOP. We're currently
discussing that topic so I cannot tell when that will be.

In the meantime you can download FOP Trunk from SVN. Instructions are
found here:
http://xmlgraphics.apache.org/fop/download.html#source
and here:
http://xmlgraphics.apache.org/fop/dev/tools.html#svn

On 21.06.2006 15:47:53 mcevikce wrote:
> 
> I am having the same problem with block-container. Would you be able to tell
> me when this fix will be released? Is there a way to download the fix from
> the SVN?


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org