【发布时间】:2018-02-04 14:29:36
【问题描述】:
我正在尝试在 XSL 中对齐 SVG 图像旁边的文本,然后用于创建 pdf。
这是我设置文本和 SVG 的地方:
<fo:block font-size="14pt" text-align="center" margin-top="2cm">
<fo:instream-foreign-object>
<svg:svg width="30" height="30" xml:space="preserve">
<svg:g style="fill:none; stroke:black; stroke-width:1">
<svg:rect x="0" y="0" width="30" height="30"/>
</svg:g>
</svg:svg>
</fo:instream-foreign-object>
Mark If Closed
</fo:block>
这是输出:
我希望文本“Mark If Closed”垂直位于方形 SVG 的中间。
【问题讨论】:
标签: pdf xslt svg xsl-fo apache-fop