Could you please provide me with some demo code of how to use the LayoutEnumerator? I tried it like this:
Document d = new Document("c:/myfile.rtf");
final LayoutEnumerator layoutEnumerator = new LayoutEnumerator(d);
public int visitParagraphStart(Paragraph paragraph) throws Exception
public int visitRun(Run run) throws Exception
Unfortunately I only get information for the paragraphs which seem to be odd because of very unmatching x-coordinates from paragraphs of same alignment.
I hope you can help me. It would be enough to have a snippet which simply walks through the tree down to the run-level.
Update: While playing around I think I managed to get the desired walk through. Unfortunately I'm stuck at the SPAN(TEXT)-level because I haven't found a way of getting the font and stuff from the "current" object of the LayoutEnumerator. Any chance to get this?