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 Vincent POMEY <vi...@sysde.eads.net> on 2002/03/18 16:41:36 UTC

Fill in the form

I'm trying to print a page with 'fill in the form' leaders on several
lines, AND some 'pre filled' values displayed ON the leaders (this is the
actual data from the database).

In order to do that, I tried to use absolute positioning of the actual
data, inside a block (so that the leaders use space on the flow)

using FOP 0.20.3, to following code crash (exception in BlockArea)

<fo:block>

  <fo:block>
    <fo:leader leader-length='18cm' leader-pattern='dots'/><fo:block/>
    <fo:leader leader-length='18cm' leader-pattern='dots'/><fo:block/>
    <fo:leader leader-length='18cm' leader-pattern='dots'/><fo:block/>
    <fo:leader leader-length='18cm' leader-pattern='dots'/><fo:block/>
    <fo:leader leader-length='18cm' leader-pattern='dots'/><fo:block/>
  </fo:block>

  <fo:block-container position='absolute' top='0cm' width='18cm'>
    <fo:block>
        My actuel text
    </fo:block>
  </fo:block-container>

</fo:block>

If I replace the first block with a fo:block-container, it doesn't crash, but the actual text is displayed at the beginning of the page, which is not
what I want since I have many other fields in my form.

Does anybody have an idea ?

Thanks,

     Vincent.