# PDF Viewer Page Numbers Accessible?

**URL:** <https://forum.inductiveautomation.com/t/pdf-viewer-page-numbers-accessible/18662>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [June 28, 2018, 7:47pm UTC](https://forum.inductiveautomation.com/t/pdf-viewer-page-numbers-accessible/18662 "2018-06-28T19:47:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 28, 2018, 8:06pm UTC](https://forum.inductiveautomation.com/t/pdf-viewer-page-numbers-accessible/18662/2 "2018-06-28T20:06:26Z")

</div>

To directly go forward a page:

```auto
target = event.source.parent.getComponent('PDF Viewer')
swingController = target.getController()
documentController = swingController.getDocumentViewController()
swingController.goToDeltaPage(documentController.getDocumentView().getNextPageIncrement())

```

To choose a specific page, pass a page index to `swingController.showPage()`. To get the total number of pages, use `swingController.getPageTree().getNumberOfPages()`. Full documentation is available here:  
[http://res.icesoft.org/docs/icepdf/v4\_3\_2/viewer/javadocs/org/icepdf/ri/common/SwingController.html](http://res.icesoft.org/docs/icepdf/v4_3_2/viewer/javadocs/org/icepdf/ri/common/SwingController.html)

---

_[View the full topic](https://forum.inductiveautomation.com/t/pdf-viewer-page-numbers-accessible/18662)._
