如何将docx或wordml xml文件转换为xsl-fo? [英] How can I convert docx or wordml xml files to xsl-fo?

查看:209
本文介绍了如何将docx或wordml xml文件转换为xsl-fo?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一种将docx或wordml xml转换为xsl-fo的方法.

I've been looking for a method to convert docx or wordml xml to xsl-fo.

我读了这篇文章:

什么是适用于Perl的最佳XSLT引擎?

但是我在使用apache-fop时遇到了特殊的问题.

but I'm having exceptional problems getting apache-fop going.

我能够下载垃圾箱并在本地运行,但是格式略有偏离,并且没有保留页眉和页脚或第1节或第3节(第17页doc 3节).

I was able to download the bins and run it locally but the formatting was a little off and it didn't maintain the headers and footers or section 1 or section 3 (17 page doc 3 sections).

它还将文本覆盖在大纲编号上,并且没有保留所使用的字体.

It also overlapped the text over the outline numbers and did not maintain the font used.

尝试更简单的测试会导致fop完全失败.

Trying a more simple test caused fop to fail completely.

我想找到一种创建PDF的方法,该PDF至少可以准确地复制原始文档的100%.

I would like to find a way to create a PDF that is at least close to 100% accurate reproduction of the original doc.

推荐答案

我不确定xsl.fo,但是我对

I'm not sure about the xsl.fo, but I've had good experiences with PDFCreator for turning Microsoft documents to PDF, on Windows. It acts as a printer driver, so I'd guess there would be a way to automatically invoke it using COM bridges from Perl, if you're hosting your webserver on Windows (or perhaps with Wine?).

这篇关于如何将docx或wordml xml文件转换为xsl-fo?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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