You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Jeff G <je...@gmail.com> on 2011/06/03 23:31:25 UTC

Re: Reducing the size of POI

So what about dom4j & xmlbeans?  Are these required for xlsx?

On Thu, May 26, 2011 at 6:34 PM, Nick Burch <ni...@alfresco.com> wrote:

> On Thu, 26 May 2011, Jeff G wrote:
>
>> I'm using POI strictly for *reading Excel xls & xlsx *documents.  I'm
>> using this as part of a Java Web Start app with somewhat low bandwidth. POI
>> is by far my biggest size hog.  Is there any way I can reduce the size of
>> this? Are all these libraries needed?  This is what I have...
>>
>> dom4j, poi, poi-contrib, poi-ooxml, poi-ooxml-schemas, poi-scratchpad,
>> xmlbeans
>>
>
> If you're just doing excel files, you can ditch poi-scratchpad and
> poi-contrib. If you're happy to just work with .xls (not .xlsx), then you
> can cut it back to only the main poi jar. If you need to work with .xlsx
> files, then you need the xml related jars, the poi-ooxml jar, and the cut
> down schemas (poi-ooxml-schemas). You might be able to shrink the
> ooxml-schemas file by excluding the word and powerpoint related bits, ditto
> cutting out the xwpf and xslf parts of poi-ooxml, not sure how much that'd
> save.
>
> Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>

Re: Reducing the size of POI

Posted by Jeff G <je...@gmail.com>.
Has anyone tried ProGuard on POI?
http://proguard.sourceforge.net/

- Jeff

On Fri, Jun 3, 2011 at 5:40 PM, Nick Burch <ni...@alfresco.com> wrote:

> On Fri, 3 Jun 2011, Jeff G wrote:
>
>> So what about dom4j & xmlbeans?  Are these required for xlsx?
>>
>
> Yup, for the xml formats (xlsx, docx and pptx) you need:
> * poi
> * poi-scratchpad if working with .docx and .pptx
> * poi-ooxml
> * one of poi-ooxml-schemas or ooxml-schemas
> * xmlbeans + it's dependencies (eg dom4j + stax)
>
>
> Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>

Re: Reducing the size of POI

Posted by Nick Burch <ni...@alfresco.com>.
On Fri, 3 Jun 2011, Jeff G wrote:
> So what about dom4j & xmlbeans?  Are these required for xlsx?

Yup, for the xml formats (xlsx, docx and pptx) you need:
* poi
* poi-scratchpad if working with .docx and .pptx
* poi-ooxml
* one of poi-ooxml-schemas or ooxml-schemas
* xmlbeans + it's dependencies (eg dom4j + stax)

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org