PDF输出:使用coldfusion 11的Apache FOP或<cfdocument>标签

时间:2016-03-03 19:37:40

标签: apache pdf coldfusion apache-fop coldfusion-11

我正在将coldfusion 9窗口移动到coldfusion 11 linux。我有一个生成PDF输出的应用程序。最后一位开发人员多年前利用Apache FOP库来解码PDF输出:

<CFSaveContent Variable="FOData">
<CFOutput>
<!-- root of document, set common attributes, will be inherited by all lower      tags -->
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
  font-family="serif"
  font-size="12pt"
  text-align="left">
  ...
</CFSaveContent>
</CFOutput>

它无法在Coldfusion 11上运行。我在PDF输出上有空白页面。我有Apache FOP 0.20。我下载了新版FOP 2.0。我发现如果我使用新的FOP,我的源代码需要做很多更改。

我的问题是我应该保留此FOP解法还是切换到<cfdocument format="PDF">标记。

有什么建议吗?

感谢。

0 个答案:

没有答案