MS Word 2004 (OSX)死机或显示对话框时如何处理?
我正在使用 jRuby 和一个 Java 库(本身使用一个 applescript 来处理 MS Word)将 Word 文档转换为 PDF 文件。有时我会收到有关页边距问题的对话框,或者 MS Word 由于文件太大而冻结。
谁能推荐一个我可以在 OSX 上运行的脚本或库来管理这些问题(如果没有响应,请关闭对话框/重新启动 Word)?问题是我不太了解 applescript,而且 Java 库不是开源的,所以它可以是观察者或运行另一种编程语言的东西,我真的不介意。
I'm using jRuby and a Java library (using itself an applescript to play with MS Word) to convert Word documents to PDF files. Sometimes I get a dialog about margins issues, or MS Word is freezing because the file is too big.
Could anyone recommend a script or library that I could run on OSX to manage these issues (closing the dialog / restarting Word if not responding)? The problem is that I don't really know about applescript and the Java library is not opensource, so it can be an observer or something running another programming language, I don't really mind.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不能推荐一种方法来管理您的字冻结问题,但另一种方法是使用基于 OpenOffice 的系统来进行转换,因为 OpenOffice 在 OSX 下运行,并且 OpenOffice 导入/导出过滤器非常强大(对于大多数人来说足够好了)目的)。 Docmosis 和 JODReports 可以为此功能提供 Java/cmd 行接口,或者您可以直接使用 OpenOffice UNO API(不是最佳选择)。要确定这是否是一个好方法,请安装 OpenOffice(当前版本为 3.2)并将一些示例 DOC 转换为 PDF,以查看结果是否足以满足您的目的。如果是这样,请查看 Docmosis 和 JODReports/JODConverter,看看它们是否能够足够快地为您提供所需的内容。
I can't recommend a way of managing your word freezing issues, but another approach would be to use an OpenOffice-based system to do the conversion since OpenOffice runs under OSX and the OpenOffice import/export filters are pretty powerful (good enough for most purposes). Docmosis and JODReports can provide the Java/cmd-line interface to this capability or you could use OpenOffice UNO API directly (not the best option). To decide if it's a good approach, install OpenOffice (currently at version 3.2) and convert a few sample DOCs to PDF to see whether the results are good enough for your purposes. If so, then check out Docmosis and JODReports/JODConverter and see if they can give you what you want quickly enough.