Pages: 1
Print
Author Topic: Text orientation in table: PDF output  (Read 2055 times)
rnv
Member

Posts: 48


« on: November 11, 2013, 09:34:22 AM »

Hi,

Is it possible to publish the orientation of text in a table from bottom to up in PDF publication? normally it is published horizontally but i would like to print text vertically so that column width is smaller.

regards,
rnv
Logged
IF
Member

Posts: 80


« Reply #1 on: November 12, 2013, 10:53:15 AM »

You can try using the outputclass attribute on the stentry element and  modifying the template that starts with <xsl:template match="*[contains(@class, ' topic/strow ')]/*[contains(@class, ' topic/stentry ')]"> to change the orientation.
This is how I modified it.

<xsl:choose>
      <xsl:when test="number(ancestor::*[contains(@class, ' topic/simpletable ')][1]/@keycol) = $entryCol">
        <fo:block xsl:use-attribute-sets="strow.stentry__keycol-content">
          <xsl:apply-templates/>
        </fo:block>
      </xsl:when>
      <xsl:otherwise>
        <xsl:choose>
          <xsl:when test="@outputclass='rotate'">           <!-- IF added block container to rotate text based on output class; only works for body simple table --> 
            <fo:block-container reference-orientation="90" inline-progression-dimension.minimum="5mm" inline-progression-dimension.optimum="30mm" inline-progression-dimension.maximum="auto">
              <fo:block xsl:use-attribute-sets="strow.stentry__content">
                <xsl:apply-templates/>
              </fo:block>
            </fo:block-container>
          </xsl:when>
          <xsl:otherwise>
            <fo:block xsl:use-attribute-sets="strow.stentry__content">
              <xsl:apply-templates/>
            </fo:block>
          </xsl:otherwise>
        </xsl:choose> 
      </xsl:otherwise>
    </xsl:choose>
Logged
Pages: 1
Print
Jump to:  

email us