File converted = File.createTempFile("aspdf-", ".pdf");
Document doc = new Document("C:\\temp\\Test-doc31.doc");
doc.getChildNodes(NodeType.COMMENT, true).clear();
File dotdoc = File.createTempFile("aspdf-", ".doc");
doc.save(dotdoc.getAbsolutePath(), SaveFormat.DOC);
doc = new Document(dotdoc.getAbsolutePath());
doc.save(converted.getAbsolutePath(), saveOptions);
The attached doc has two pages where a table split in the 2 pages, the output file move the row[2.5] from page 1 to page 2.