MCPcopy Create free account
hub / github.com/ArtifexSoftware/mupdf / gotoLastPage

Method gotoLastPage

platform/java/example/ViewerCore.java:379–393  ·  view source on GitHub ↗
(final OnException onException)

Source from the content-addressed store, hash-verified

377 }
378
379 public void gotoLastPage(final OnException onException) {
380 worker.add(new Worker.Task() {
381 Location location;
382 public void work() {
383 location = doc.lastPage();
384 }
385 public void run() {
386 gotoLocation(location, onException);
387 }
388 public void exception(Throwable t) {
389 if (onException != null)
390 onException.run(t);
391 }
392 });
393 }
394
395 public void gotoPage(final int pageNumber, final OnException onException) {
396 worker.add(new Worker.Task() {

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected