Hi
we are going to upgrade aspose as per version mentioned in the bottom of this post
However , i am seeing there has been considerable changes in the upgraded version
those change are creating in our code
till now i have identified couple of runtime issue
for e.g
i) Issue using Run Object : i believe this is due to the introduction of DocuementBase class
code :
Document doc = new Document();
Run run = new Run(doc, "test");
String runTxt = run.toTxt();
System.out.println("runTxt:" + runTxt);
result :
java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:85)
at com.aspose.words.avg.visitRun(TxtWriter.java: 109)
at com.aspose.words.Run.accept(Run.java: 89)
at com.aspose.words.avg.w(TxtWriter.java: 68)
at com.aspose.words.Document.a(Document.java: 1371)
at com.aspose.words.Node.toTxt(Node.java: 565)
at com.test.TestUpHeaderFooter.main(TestUpHeaderFooter.java: 28)
expected result :
runTxt:test
ii) Issue using Header and footer : Attaching the used word doc
code :
Document clauseDoc = new Document("C:\DocEd\Express Header.doc");
if (clauseDoc.getSections().get(0) != null)
{
int cnt = clauseDoc.getSections().get(0).getHeadersFooters().getCount();
System.out.println("HeadersFooters count:" + cnt);
for (HeaderFooter hf: clauseDoc.getSections().get(0).getHeadersFooters())
{
System.out.println("Remove Header Footer: " + hf.getHeaderFooterType());
hf.remove();
}
}
result :
HeadersFooters count:6
Remove Header Footer: 0
doc header and footer is not getting removed
expected result :
HeadersFooters count:6
Remove Header Footer: 0
Remove Header Footer: 1
Remove Header Footer: 2
Remove Header Footer: 3
Remove Header Footer: 4
Remove Header Footer: 5
and the doc with removed header and footer
iii) I see there is a new class DocumentBase introduced as a parent to Document class , which
we were using in our Existing version.Is there any documentation availble telling the classes impacted by addition of
DocumentBase class as parent of Document class ?
iv) In general ,Is there any documentation which will help us to identify and suggest all the changes to upgrade our code version
Exisiting Product Info:
Specification - Title: Aspose.Words for Java
Implementation - Title: Aspose.Words for Java
Specification - Version: 3.3 .0 .0
Implementation-Version: 3.3.0.0
Specification-Vendor: Aspose Pty Ltd
Implementation-Vendor: Aspose Pty Ltd
Copyright: Copyright 2003-2009 Aspose Pty Ltd
New/Upgraded Product Info :
Specification - Title: Aspose.Words for Java
Specification - Version: 10.5 .0 .0
Specification - Vendor: Aspose Pty Ltd
Implementation - Title: Aspose.Words for Java
Implementation-Version: 10.5.0.0
Implementation-Vendor: Aspose Pty Ltd
Release-Date: 2011.09.30