XSL-FO - 在表格内缩放图像

时间:2013-11-22 19:43:40

标签: image scale xsl-fo

此表位于另一个表中。为什么图像不能缩放到1英寸?

         <fo:table table-layout="fixed">
                    <fo:table-column column-width="1.00in" />
                    <fo:table-body>
                        <fo:table-row>
                            <fo:table-cell>
                                <fo:block>
                                    <fo:external-graphic src="url('{$url}')" scaling="uniform" scaling-method="auto" width="1.00in"/>                                       
                                </fo:block>  
                            </fo:table-cell>
                        </fo:table-row>                                                 
                    </fo:table-body>
                </fo:table>

1 个答案:

答案 0 :(得分:4)

我必须在外部图形中指定 content-width 属性。