Well, I will wind up doing just that to simulate two columns within a block in the region-before, but unfortunately a table won't span a single block across two adjacent cells to simulate columns (right?). So, the code I'm writing needs to calculate when the text in the first cell needs to be split and and carried over to the next cell.

In glancing at the code, it looks like I might be able to instantiate org.apache.fop.layout.LineArea (and some other FOP objects) in my own application to calculate the width of a line -- am I on the right track?

Also, if there's an alternate way to get what I want (a box at the top of the second page separate from the page body that has two columns of text) please do let me know.

Clay Leeds wrote:
Ben Galbraith wrote:

Unfortunately, I need to create a block in a region-before that's divided into two columns. As this notion is not supported by XSL 1.0, I needn't wonder if FOP supports this in some way.


Can you use fo:table to create 2 columns?

<fo:static-content flow-name="xsl-region-before">

<fo:block padding="0pt">
<fo:table border="0pt" table-layout="fixed" margin-top="4pt">
  <fo:table-column column-width="10cm"/>
  <fo:table-column column-width="10cm"/>
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell padding="1pt">
        <fo:block keep-with-next.within-page="always" font-weight="bold">
          Patient
        </fo:block>
      </fo:table-cell>
      <fo:table-cell padding="1pt">
        <fo:block keep-with-next.within-page="always">
          Gina Latta
        </fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>
</fo:static-content>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to