I am using Apache FOP to render the attached document. The text "M01"
and "M02" are to be rotated and centered across the rows that they
refer to. I have put a red border around the block-container that the
text is inside to try and debug the issue. It appears that I need to
specify a size for the elements. Is it possible to have the height
(width before rotation) automatically determined by the other cells in
the table? Ideally I would like to have the rotated cell height be the
minimum of the height needed for the rotated text and the height of the
rows that it is spanning.

In the end this is an embedded application using the FOP library. I am
testing using FOP version 2.4 on Linux with Java 1.8.

>./fop-2.4/fop/fop -version
FOP Version 2.4

>java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)


Thank you,
Jon

<?xml version="1.0" encoding="UTF-8"?><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; font-family="Helvetica">
<fo:layout-master-set>
  <fo:simple-page-master margin-bottom="0.500000in" margin-left="0.500000in" margin-right="0.500000in" margin-top="0.500000in" master-name="simple" page-height="11.000000in" page-width="8.500000in">
    <fo:region-body margin-top="0.000000in"/>
    <fo:region-before extent="0.0in"/>
    <fo:region-after extent="0.3in"/>
  </fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence id="seq1" master-reference="simple">
  <fo:static-content flow-name="xsl-region-after">
    <fo:block font-size="6pt" font-style="italic" text-align="center">©2010 The United States Foundation for Inspiration and Recognition of Science and Technology (FIRST) and The LEGO Group. Used by special permission. All rights reserved.</fo:block>
  </fo:static-content>
  <fo:flow flow-name="xsl-region-body">
    <fo:block page-break-after="always">
      <fo:block-container padding-bottom="10pt">
        <fo:table font-family="Helvetica" font-size="10pt" table-layout="fixed" width="100%">
          <fo:table-column column-width="proportional-column-width(4)"/>
          <fo:table-column column-width="proportional-column-width(48)"/>
          <fo:table-column column-width="proportional-column-width(48)"/>
          <fo:table-body>
            <fo:table-row border-top="1.000000pt solid black">
              <fo:table-cell number-columns-spanned="2" padding-bottom="2pt" padding-right="9pt" padding-top="2pt">
                <fo:block-container>
                  <fo:block text-align="right">Fit in Small Inspection Area</fo:block>
                </fo:block-container>
              </fo:table-cell>
              <fo:table-cell font-family="Courier" padding-bottom="2pt" padding-top="2pt">
                <fo:block-container>
                  <fo:block text-align="left">NO / YES</fo:block>
                </fo:block-container>
              </fo:table-cell>
            </fo:table-row>
            <fo:table-row border-top="1.000000pt solid black">
              <fo:table-cell border-bottom="1.000000pt solid black" border-left="1.000000pt solid black" border-right="1.000000pt solid black" border-top="1.000000pt solid black" number-rows-spanned="2">
                <fo:block-container
		    border-bottom="1pt solid red"
		    border-left="1pt solid red"
		    border-right="1pt solid red"
		    border-top="1pt solid red"
		    reference-orientation="90"
		    inline-progression-dimension="inherited-property-value(line-height)"
		    >
                  <fo:block text-align="center">M01</fo:block>
                </fo:block-container>
              </fo:table-cell>
              <fo:table-cell padding-bottom="2pt" padding-right="9pt" padding-top="2pt">
                <fo:block-container>
                  <fo:block text-align="right">M01 - Elevated places - Robot is Supported by the Bridge</fo:block>
                </fo:block-container>
              </fo:table-cell>
              <fo:table-cell font-family="Courier" padding-bottom="2pt" padding-top="2pt">
                <fo:block-container>
                  <fo:block text-align="left">NO / YES</fo:block>
                </fo:block-container>
              </fo:table-cell>
            </fo:table-row>
            <fo:table-row>
              <fo:table-cell padding-bottom="2pt" padding-right="9pt" padding-top="2pt">
                <fo:block-container>
                  <fo:block text-align="right">M01 - Elevated places - Number of flags that are clearly raised any distance, only by the Robot</fo:block>
                </fo:block-container>
              </fo:table-cell>
              <fo:table-cell font-family="Courier" padding-bottom="2pt" padding-top="2pt">
                <fo:table font-size="8pt" table-layout="fixed" width="100pt">
                  <fo:table-column column-width="proportional-column-width(1)"/>
                  <fo:table-column column-width="proportional-column-width(1)"/>
                  <fo:table-body>
                    <fo:table-row>
                      <fo:table-cell border-bottom="1.000000pt solid black" border-left="1.000000pt solid black" border-right="1.000000pt solid black" border-top="1.000000pt solid black">
                        <fo:block-container>
                          <fo:block/>
                        </fo:block-container>
                      </fo:table-cell>
                      <fo:table-cell border-bottom="1.000000pt solid black" border-left="1.000000pt solid black" border-right="1.000000pt solid black" border-top="1.000000pt solid black">
                        <fo:block-container>
                          <fo:block>(0 - 2)</fo:block>
                        </fo:block-container>
                      </fo:table-cell>
                    </fo:table-row>
                  </fo:table-body>
                </fo:table>
              </fo:table-cell>
            </fo:table-row>
            <fo:table-row border-top="1.000000pt solid black">
              <fo:table-cell border-bottom="1.000000pt solid black" border-left="1.000000pt solid black" border-right="1.000000pt solid black" border-top="1.000000pt solid black" number-rows-spanned="3">
                <fo:block-container border-bottom="1pt solid red" border-left="1pt solid red" border-right="1pt solid red" border-top="1pt solid red" reference-orientation="90">
                  <fo:block text-align="center">M02</fo:block>
                </fo:block-container>
              </fo:table-cell>
              <fo:table-cell padding-bottom="2pt" padding-right="9pt" padding-top="2pt">
                <fo:block-container>
                  <fo:block text-align="right">M02 - Crane - Hooked Blue Unit Lowered from the Guide Hole</fo:block>
                </fo:block-container>
              </fo:table-cell>
              <fo:table-cell font-family="Courier" padding-bottom="2pt" padding-top="2pt">
                <fo:block-container>
                  <fo:block text-align="left">NO / YES</fo:block>
                </fo:block-container>
              </fo:table-cell>
            </fo:table-row>
            <fo:table-row>
              <fo:table-cell padding-bottom="2pt" padding-right="9pt" padding-top="2pt">
                <fo:block-container>
                  <fo:block text-align="right">M02 - HBU Independent and Supported by another Blue unit</fo:block>
                </fo:block-container>
              </fo:table-cell>
              <fo:table-cell font-family="Courier" padding-bottom="2pt" padding-top="2pt">
                <fo:block-container>
                  <fo:block text-align="left">NO / YES</fo:block>
                </fo:block-container>
              </fo:table-cell>
            </fo:table-row>
            <fo:table-row>
              <fo:table-cell padding-bottom="2pt" padding-right="9pt" padding-top="2pt">
                <fo:block-container>
                  <fo:block text-align="right">M02 - HBU Supported by Blue Unit AND Level 1 Completely in Blue Circle</fo:block>
                </fo:block-container>
              </fo:table-cell>
              <fo:table-cell font-family="Courier" padding-bottom="2pt" padding-top="2pt">
                <fo:block-container>
                  <fo:block text-align="left">NO / YES</fo:block>
                </fo:block-container>
              </fo:table-cell>
            </fo:table-row>
	    
          </fo:table-body>
        </fo:table>
      </fo:block-container>
    </fo:block>
    
  </fo:flow>
</fo:page-sequence>
</fo:root>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to