Page 1 of 1

Replacement for LoadFromZipNG

PostPosted: Fri Oct 31, 2014 10:25 pm
by surfspider
I am using following code from your example webapp (

Code: Select all
         LoadFromZipNG loader = new LoadFromZipNG();
         try {
            tmpPkg = (WordprocessingMLPackage)loader.get(docxInputStream);
         } catch (Exception e) {            
            throw new Docx4JException("Error reading docx file (is this a valid docx?)");

The class LoadFromZipNG is deprecated. Is there a replacement?

Thank you in advance for your answer.

Re: Replacement for LoadFromZipNG

PostPosted: Sat Nov 01, 2014 7:39 am
by jason

org.docx4j.openpackaging.packages.OpcPackage.load methods use it

You should use Docx4J facade: Docx4J.load, which uses it under the covers