Thanks for the suggestion. I tried by using OpcPackage.load(bis, Filetype.ZippedPackage, null);
Now it is thowing Exception as
01-07 14:19:30.099: I/System.out(29690): 129433 [main] INFO org.docx4j.jaxb.Context - .. others loaded ..
01-07 14:19:30.099: W/System.err(29690): Context init: 130481ms
01-07 14:19:30.206: I/System.out(29690): 129542 [main] INFO org.docx4j.openpackaging.contenttype.ContentTypeManager - Detected PresentationMLPackage package
01-07 14:19:30.215: I/dalvikvm(29690): Could not find method org.pptx4j.model.SlideSizesWellKnown.valueOf, referenced from method org.docx4j.openpackaging.packages.PresentationMLPackage.createPackage
01-07 14:19:30.215: W/dalvikvm(29690): VFY: unable to resolve static method 59487: Lorg/pptx4j/model/SlideSizesWellKnown;.valueOf (Ljava/lang/String;)Lorg/pptx4j/model/SlideSizesWellKnown;
[code][/code]
it is NOT able to find valueOf(String) method of SlideSizesWellKnown Class that is used in createPackage method of PresentationMLPackage.
in the grepCode , Link ...
http://grepcode.com/file/repo1.maven.or ... .String%29 it is showing that SlideSizesWellKnown.java class does not contain method as valueOf(String) but in the API doc given @
http://www.jarvana.com/jarvana/view/org ... ang.String)
valueOf(String)method is mentioned.
why this discrepancies although both have same version of doc4xJ i.e 2.7.1 .
I am using docx4J 2.8.1.
Please Help.