On rotate, find page index from the index of current page with respect to original text without breakline added.