# PDF Viewer - Zoom

**URL:** <https://forum.inductiveautomation.com/t/pdf-viewer-zoom/19390>\
**Category:** Ignition\
**Created:** [August 23, 2018, 4:54pm UTC](https://forum.inductiveautomation.com/t/pdf-viewer-zoom/19390 "2018-08-23T16:54:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rrowe](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rrowe](https://forum.inductiveautomation.com/u/rrowe)\
**Post date:** [August 23, 2018, 4:54pm UTC](https://forum.inductiveautomation.com/t/pdf-viewer-zoom/19390/1 "2018-08-23T16:54:26Z")

</div>

How can I get the PDF Viewer to be zoomed in to 250% automatically.

---

<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:** [August 23, 2018, 5:03pm UTC](https://forum.inductiveautomation.com/t/pdf-viewer-zoom/19390/2 "2018-08-23T17:03:03Z")

</div>

The PDF viewer component has a [`setZoomFactor`](https://docs.inductiveautomation.com/display/DOC79/PDF+Viewer) method.

```auto
target = event.source.parent.getComponent('PDF Viewer')
target.setZoomFactor(2.5)

```

If you want more complex control, you can drill into the underlying objects; see more info here:

> [@PDF Viewer Page Numbers Accessible?](http://forum.inductiveautomation.com/t/pdf-viewer-page-numbers-accessible/18662/2):
>
> To directly go forward a page: 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.…](http://res.icesoft.org/docs/icepdf/v4_3_2/viewer/javadocs/org/icepdf/ri/common/SwingController.html)
