List labels getting changed upon page split

Hi Team,

I am using toString method to get the text of a paragraph node while parsing/reading a document file. This also gets me the list label. I am also using layoutCollector to find start page number and end page number. As per my finding, using layout collector slows down the parsing process. I tried doing a page split using some custom code but that seems to be changing list label upon every page split. Can you help or point to any pre-built function that can help to split the documents during processing so that I can read the text and the list labels remain unchanged during document splitting.

@AdityaSirion If you would like to read the document page by page, I would suggest you to use Document.extractPages method instead of custom code.

Hi,
Please mark this as resolved. Using aspose’s built in document split method resolved the issue.

1 Like