Hello, I can thanks to jDocument concat 2 ODT I created with the same LO. But, I sometimes have some documents which are automatically created (through pandoc for example). It seems they are based on OD 1.0 while others are created in OD 1.2 like this error message seems to prove it:
java.lang.IllegalArgumentException: Cannot change format version from org.jopendocument.dom.XMLFormatVersion@5979802d OD version 1.2 to org.jopendocument.dom.XMLFormatVersion@59797fef OD version 1.0 at org.jopendocument.dom.ODPackage.checkVersion(ODPackage.java:363) at org.jopendocument.dom.ODPackage.setTypeAndVersion(ODPackage.java:511) at org.jopendocument.dom.ODPackage.updateTypeAndVersion(ODPackage.java:499) at org.jopendocument.dom.ODPackage.putFile(ODPackage.java:1002) at org.jopendocument.dom.ODPackage$1.processEntry(ODPackage.java:411) at org.jopendocument.util.ZippedFilesProcessor.process(ZippedFilesProcessor.java:53) at org.jopendocument.dom.ODPackage.<init>(ODPackage.java:413) at org.jopendocument.dom.ODPackage.<init>(ODPackage.java:442) at org.jopendocument.dom.ODSingleXMLDocument.createFromPackage(ODSingleXMLDocument.java:369) at org.jopendocument.sample.TextCat.main(TextCat.java:29) If I open then close the 'old' document with LO, everything is ok, I can concat them, otherwise I can't. Does jDocument provide a method to convert from one version to another before concatenating them? Thanks, JC -- --- You received this message because you are subscribed to the Google Groups "jOpenDocument" group. To unsubscribe from this group and stop receiving emails from it, send an email to jopendocument+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.