SVG矩形高度与fo:块高度匹配

SVG矩形高度与fo:块高度匹配,svg,xsl-fo,apache-fop,Svg,Xsl Fo,Apache Fop,这是在黑暗中拍摄的,但是有没有一种方法可以根据fo:block高度设置svg rect高度 我有一个设计,客户机假设静态图形可以在fo:table行中缩放,其中文本是换行的。静态图形具有非常特殊的形状 我正试图找到一种解决方案,根据图形的父级来缩放图形高度。如果您试图在表格单元格中的块后面放置缩放后的背景图像(问题不清楚)。。。您可以使用RenderX XEP及其背景图像扩展来实现这一点 看 样本: <fo:table> <fo:table-column c

这是在黑暗中拍摄的,但是有没有一种方法可以根据
fo:block
高度设置svg rect高度

我有一个设计,客户机假设静态图形可以在
fo:table行中缩放,其中文本是换行的。静态图形具有非常特殊的形状


我正试图找到一种解决方案,根据图形的父级来缩放图形高度。

如果您试图在表格单元格中的块后面放置缩放后的背景图像(问题不清楚)。。。您可以使用RenderX XEP及其背景图像扩展来实现这一点

样本:

  <fo:table>
        <fo:table-column column-width="1in"/>
        <fo:table-column column-width="1in"/>
        <fo:table-column column-width="1in"/>
        <fo:table-body>
            <fo:table-row >
                <fo:table-cell>
                    <fo:block background-repeat="no-repeat" background-position="center center" background-image="circles1.svg" rx:background-content-height="scale-to-fit" rx:background-content-width="scale-to-fit" rx:background-scaling="non-uniform">This is some flowing stuff. This is some flowing stuff. This is some flowing stuff. This is some flowing stuff. </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                    <fo:block background-repeat="no-repeat" background-position="center center" background-image="circles1.svg" rx:background-content-height="scale-to-fit" rx:background-content-width="scale-to-fit" rx:background-scaling="non-uniform">This is some flowing stuff. </fo:block>
                </fo:table-cell>
                <fo:table-cell>
                    <fo:block background-repeat="no-repeat" background-position="center center" background-image="circles1.svg" rx:background-content-height="scale-to-fit" rx:background-content-width="scale-to-fit" rx:background-scaling="non-uniform"> This is some flowing stuff. This is some flowing stuff. This is some flowing stuff. This is some flowing stuff. This is some flowing stuff. This is some flowing stuff. This is some flowing stuff. This is some flowing stuff. </fo:block>
                </fo:table-cell>
            </fo:table-row>
        </fo:table-body>
    </fo:table>

这是一些流动的东西。这是一些流动的东西。这是一些流动的东西。这是一些流动的东西。
这是一些流动的东西。
这是一些流动的东西。这是一些流动的东西。这是一些流动的东西。这是一些流动的东西。这是一些流动的东西。这是一些流动的东西。这是一些流动的东西。这是一些流动的东西。
结果:


你能说得更具体些吗?图像是在块上(即,它在块中的一个表格单元格中)还是在整个表格行上?另外,解释在两个方向上所需的缩放(您声明高度缩放是否合适,宽度会发生什么变化?)。是图形缩放不均匀还是?