title: How to get current page in MuPDF?
body: <p>I need to go to the same page on a PDF document after screen change. I have found how to navigate to page <a href="https://stackoverflow.com/questions/22220441/navigating-to-a-specific-page-with-the-mupdf-android-library">here</a> but I failed to get the current page number.</p>
  
  <p>I have found some codes regarding this in MuPDF library but couldn't call it from main activity. In PageView class (MuPDFPageView extends PageView):</p>
  
  <pre><code>public int getPage() {
      return mPageNumber;
  }
  </code></pre>
  
  <p>The problem is I don't know how to call this from main activity. I tried something like this:</p>
  
  <pre><code>final MuPDFPageView pageView = new MuPDFPageView(getApplicationContext(), filePickerSupport, core, parentSize, sharedHqBm);
  int i = pageView.getPage();
  </code></pre>
  
  <p>But failed to fill the parameters in. Anybody has a better or easier way to get the current page number?</p>