我正在从 DITA-OT 的 1.2.2 版本升级到 2.2.1,并且在使用 fop 输出 PDF 时遇到了一些问题:
1 - TOC 继续以罗马数字而不是阿拉伯数字打印页码。我在哪里可以更改输出格式?
2 - 尝试为 fo:block-container 或 fo:table 设置 PDF 背景图像时,输出如下:
[fop] [ERROR] Image not available.
URI: Customization/OpenTopic/common/artwork/cover.pdf.
Reason: org.apache.xmlgraphics.image.loader.ImageException: The file format is not supported.
No ImagePreloader found for Customization/OpenTopic/common/artwork/cover.pdf (See position 1:-1)
例如,块容器定义如下:
<fo:block-container absolute-position="fixed" left="12mm" top="0mm" background-repeat="no-repeat">
<xsl:attribute name="background-image">
<xsl:value-of select=""url('Customization/OpenTopic/common/artwork/cover""/>
<xsl:value-of select="$cover"/>
<xsl:value-of select="".pdf')""/>
</xsl:attribute>-->
<fo:block/>