我有一个文档的xml文档与许多图形。所有图形必须居中并缩放。居中是没有问题的。我添加了
<xsl:attribute-set name="figure.properties">
<xsl:attribute name="text-align">center</xsl:attribute>
</xsl:attribute-set>添加到我的xsl-stylesheet表中,并将其转换为
fop -xml my-xml-document.sgm -xsl my-xsl-stylesheet.xsl -pdf my-document.pdf它工作得很好。但是我没有找到在xsl-stylesheet中为图形设置默认比例值的解决方案。
解决方案是什么?
谢谢,M。
发布于 2012-04-17 02:49:26
您可以在您的XSL定制层中设置default.image.width参数。See this page
https://stackoverflow.com/questions/9275755
复制相似问题