如何将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.
我读了这篇文章:
但是我在使用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.
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?).