We are using three aspose.word jars in production and it is from the very beginning. I don't exactly the need for using 3 jars.
Aspose.Words.jdk14.jar
Aspose.Words.jdk15.jar
Aspose.Words.jdk16.jar
Implementation-Version: 10.4.0.0 (same version in all three jars)
java version is 1.6
Environment is Windows, Unix
Java Code :
Document doc=new Document(TEMPLATE_PATH);
Document srcDoc = new Document(TEMPLATE_PATH2);
for (Section srcSection : srcDoc.getSections()) {
Node dstSection = doc.importNode(srcSection, true, ImportFormatMode.KEEP_SOURCE_FORMATTING);
doc.appendChild(dstSection);
}
Node dstSection = doc.importNode(srcSection, true, ImportFormatMode.KEEP_SOURCE_FORMATTING);
doc.appendChild(dstSection);
}
When we compile project we are getting compilation error
Even we are using Iterator for iterating SectionCollection also we are getting compilation error.
[javac] for (Section srcSection : src) {
when we remove aspose14jdk and aspose15jdk jar from project then it compile successfully.
Please suggest the deletion of these two jars is safe or not as it is referring only aspose.wordsjdk16 jar or do you have any alternate for iterating by keeping all the three version.