eXist-db 中的商业 FO 处理器 [英] Commercial FO processors in eXist-db

查看:19
本文介绍了eXist-db 中的商业 FO 处理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的项目,我想测试 XEP 和 AH Formatter.我喜欢 FOP,但在某些情况下它确实失败(浮动、裁剪标记、pdf/x 标准等),我需要知道一些替代方案.

For my project, I would like to test XEP and AH Formatter. I like FOP but in some cases it really fails (floats, crop marks, pdf/x standards, etc.) and I need to know some alternatives.

XEP

对于 XEP,我非常接近.我已将所有 jars 复制到 $EXIST_HOME/lib/user 并更改了 $EXIST_HOME/conf.xml 中的适配器.此外,我已将 xep.xml 配置文件上传到数据库中.

With XEP I am very close. I have copied all jars into $EXIST_HOME/lib/user and changed the adapter in $EXIST_HOME/conf.xml. Besides, I have uploaded the xep.xml config file into the database.

测试 XQuery:

xquery version "3.0";

declare namespace fo = "http://46.28.111.241:8081/exist/db/apps/bunny/modules/fop";

let $config := doc('/db/apps/bunny/test/xep.xml')
let $fo := doc('/db/apps/bunny/data/test.fo')
let $pdf := xslfo:render($fo, "application/pdf", (), $config)
return response:stream-binary($pdf, "application/pdf", "output.pdf")

它抛出:

exerr:ERROR org.exist.dom.persistent.NodeProxy cannot be cast to org.w3c.dom.Node [at line 7, column 13]

AH 格式化程序

使用AH Formatter,我现在迷路了.它不包含任何我可以复制到 $EXIST_HOME/lib/user 中的特定 jar 文件,或者至少看起来不是这样.在 AH 站点上有一个关于在 linux 机器上使用 AH Formatter 的说明,但这句话在将其包含到 eXist 的整个过程中没有帮助.

With AH Formatter, I am lost at the moment. It does not include any specific jar file I could copy into $EXIST_HOME/lib/user, or at least it does not seem so. On AH site there is a note about using AH Formatter on a linux machine but this remark does not help in the whole process of including that into eXist.

安装包括几个文件夹,在run.sh文件中都有提到,它比XEP更碎片化的应用程序.

The installation includes several folders which are all mentioned in the run.sh file, it is much more fragmented app than XEP.

我正在 Ubuntu Server 14.04 和 eXist-db RC01 上进行测试.

I am testing on Ubuntu Server 14.04 and eXist-db RC01.

推荐答案

eXist 目前只支持 Apache FOP 或 RenderX XEP.

eXist at the moment only supports Apache FOP or RenderX XEP.

@wolfgang-meier 之前添加了对 Antenna House 格式化程序的支持(2012 年 8 月 22 日,git commit:ffda3b7),但他在 2012 年 9 月 12 日再次将其删除(git commit: 5a2a0aa) 并评论说它将被移动到一个单独的项目......我实际上找不到单独的项目.

@wolfgang-meier previously added support for Antenna House formatter (22 August 2012, git commit: ffda3b7), but he then again removed it on 12 Sept 2012 (git commit: 5a2a0aa) with the comment that it would be moved to a separate project... I cannot actually find the separate project.

如果你想使用 Antenna House,我建议联系 Wolfgang 或从相关的 Git 提交中获取代码.

If you want to use Antenna House, I would suggest contacting Wolfgang or getting the code from the relevant Git Commits.

关于您在 RenderX XEP 中遇到的错误,当您收到错误 exerr:ERROR org.exist.dom.persistent.NodeProxy cannot be cast to org.w3c.dom.Node 时,也应该是 $EXIST_HOME/webapp/WEB-INF/logs/exist.log 中的相关堆栈跟踪,您能否也发布相关部分?

Regards the error you have with RenderX XEP, when you get the error exerr:ERROR org.exist.dom.persistent.NodeProxy cannot be cast to org.w3c.dom.Node there should also be an associated stack trace in your $EXIST_HOME/webapp/WEB-INF/logs/exist.log, can you please post the relevant section of that also?

这篇关于eXist-db 中的商业 FO 处理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆