Word文档转换为PDF格式的android [英] Conversion of word document to pdf in android

查看:1046
本文介绍了Word文档转换为PDF格式的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有n个问题在计算器这大约是同样的问题数,但我没有得到什么,我一直在寻找。我甚至尝试使用 jwordconvert.jar Qoppa 软件,但很可惜!它说

I know that there n number of question in stackoverflow which is about this same issue, but i didn't get what i was looking for. I even tried using jwordconvert.jar from Qoppa software, but alas !!! it said

Unable to execute dex: Java heap space
Conversion of dalvik format failed.

现在我已经看到了在Android Market中的应用程序,那名 Word以PDF格式 ThinkTI.com.br 。它只是做了我要我的程序做的。

Now i have seen an app in android market, thats name as Word To Pdf from ThinkTI.com.br. It just did what i want my program to do.

因此​​,谁能告诉我在机制,这背后的应用程序或类似的或更好的方式来做到这一点......

So can anyone tell me about the mechanism behind this application or a similar or better way to do it....

推荐答案

披露:我的工作docx4j

docx4j可以生成PDF输出;看<一href="https://github.com/plutext/docx4j/blob/master/src/main/java/org/docx4j/samples/ConvertOutPDF.java"相对=nofollow> ConvertOutPDF.java

docx4j can produce PDF output; see ConvertOutPDF.java

如果说质量是可以接受你的目的,你可以使用docx4j的Andr​​oid版本。请参见 JAXB可任意被订做到运行上Android的

If that quality is acceptable for your purposes, then you can use the docx4j Android build. See jaxb-can-be-made-to-run-on-android

您仍然需要给予足够的Java堆空间;根据博客文章,给Eclipse的更多的堆空间(症状是你无法执行DEX:Java堆空间)编辑的eclipse.ini,喜欢的东西:

You'll still need to give Java enough heap space; as per the blog post, to give Eclipse more heap space (symptom is ‘you get Unable to execute dex: Java heap space’) edit eclipse.ini, with something like:

-Xms256m

-Xmx4096m

这篇关于Word文档转换为PDF格式的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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