Skip to content
Jochen Staerk edited this page Dec 21, 2015 · 1 revision

Source: This was also discussed somewhere in the forum

ITextDocument textDocument = (ITextDocument) document;
IPageCursor pageCursor = textDocument.getViewCursorService().getViewCursor().getPageCursor();
//get the page nr: 
short currentPage=pageCursor.getPage();
// jump to first page
pageCursor.jumpToFirstPage(); 

Clone this wiki locally