[英]Conversion of word document to pdf in android
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. 我知道在stackoverflow中没有相同的问题,但我没有得到我想要的东西。 I even tried using
jwordconvert.jar
from Qoppa
software, but alas !!! 我什至尝试使用来自
Qoppa
软件的jwordconvert.jar
,但可惜! it said 它说
Unable to execute dex: Java heap space
Conversion of dalvik format failed.
Now i have seen an app in android market, thats name as Word To Pdf
from ThinkTI.com.br
. 现在,我在Android市场上看到了一个应用程序,即
ThinkTI.com.br
名称为Word To Pdf
。 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.... 任何人都可以告诉我有关此应用程序背后的机制或类似或更好的实现方法的信息。
Disclosure: I work on docx4j 披露:我在docx4j上工作
docx4j can produce PDF output; docx4j可以产生PDF输出; see ConvertOutPDF.java
参见ConvertOutPDF.java
If that quality is acceptable for your purposes, then you can use the docx4j Android build. 如果该质量对于您的目的是可接受的,那么您可以使用docx4j Android构建。 See jaxb-can-be-made-to-run-on-android
可以使jaxb在Android上运行
You'll still need to give Java enough heap space; 您仍然需要为Java提供足够的堆空间; 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:
根据博客文章,为Eclipse提供更多的堆空间(症状是“您无法执行dex:Java堆空间”),请编辑eclipse.ini,如下所示:
-Xms256m
-Xmx4096m
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.