Paragraph skipped 332

Hi,

Highlighted paragraph in the screenshot is skipped by your Document Visitor. If you run the code below you will get:

..
TABLE START
PARAGRAPH START
PARAGRAPH END
PARAGRAPH START
PARAGRAPH END
TABLE END
PARAGRAPH START
BOOKMARK START
BOOKMARK START
PARAGRAPH END
..

But it should be:
..
TABLE START
PARAGRAPH START
PARAGRAPH END
PARAGRAPH START
PARAGRAPH END
TABLE END
PARAGRAPH START
PARAGRAPH END
PARAGRAPH START
BOOKMARK START
BOOKMARK START
PARAGRAPH END
..
Could you please check this out?

Thanks,
Zeljko

code:

public void section() throws Exception {
Document document = new Document("Test.doc");

document.accept(new DocumentVisitor() {
@Override
public int visitParagraphEnd(Paragraph paragraph) throws Exception {
System.out.println("PARAGRAPH END");
return super.visitParagraphEnd(paragraph);
}

public int visitParagraphStart(Paragraph paragraph) throws Exception {
System.out.println("PARAGRAPH START");
return super.visitParagraphStart(paragraph);
}

public int visitTableEnd(Table table) throws Exception {
System.out.println("TABLE END");
return super.visitTableEnd(table);
}

public int visitTableStart(Table table) throws Exception {
System.out.println("TABLE START");
return super.visitTableEnd(table);
}


public int visitBookmarkStart(BookmarkStart bookmark) throws Exception {
System.out.println("BOOKMARK START");
return super.visitBookmarkStart(bookmark);
}

public int visitBookmarkEnd(BookmarkEnd bookmark) throws Exception {
System.out.println("BOOKMARK END");
return super.visitBookmarkEnd(bookmark);
}
});
}


Hi Zeljko,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-13988. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@Zeljko,

Thanks for your patience. It is to inform you that the issue which you are facing is actually not a bug in Aspose.Words. So, we have closed this issue (WORDSNET-13988) as ‘Not a Bug’.

The document does not contain a paragraph after the table. The paragraph is being added on opening the document by non-licensed version of Aspose.Words, e.g. in Document Explorer (on inserting the evaluation watermark).