Apache POI with Android——如何创建、阅读、编写、删除 PowerPoint 演示文稿? [英] Apache POI with Android -- How to Create ,Read , Write, Delete PowerPoint Presentations?
问题描述
我必须将 Apache POI API 与 android 一起使用,这是可能的
I have to Put Apache POI API with android is it possible
Provide me some tutorial links about this
请解释一下
推荐答案
Apache POI 是一个非常重的库,几乎不可能在 android 中直接使用这个库来处理 .doc 、 .docx 、 .xlsx 等多种文档类型,因为方法大小.方法大小大于 65k.但是您可以通过从 jars 中删除您不需要的类来使用它,这需要太多时间和测试.我可以建议您使用 Docx4j 但它不支持 .doc 文件.方法限制在 docx4j 中也非常接近 65k.
Apache POI is very heavy library and it is almost impossible to directly use this library in android for multiple document types like .doc , .docx , .xlsx etc becuase of Methods size. Methods size is greater then 65k. But you can use it by removing classes from jars which are not required by you and it requires too much time and testing. I can suggest you to use Docx4j but is does not support .doc file. Method limit is also very close to 65k in docx4j also.
如果您是初学者,可以在此处使用 Apache Poi 创建简单的 .doc 文件
If you are beginner you can start by creating simple .doc file using Apache Poi here
http://apache-poi.1045710.n5.nabble.com/Creating-new-word-doc-with-POI-td2289680.html
这篇关于Apache POI with Android——如何创建、阅读、编写、删除 PowerPoint 演示文稿?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!