> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/android/viewer/new-document-viewer-ui.md).

# New Document Viewer UI

Discover the latest features in Apryse's Android SDK with PdfViewCtrlTabHostFragment2. Enhanced annotation toolbar, multi-tab navigation, stamp and signature flows, and more. Upgrade now for a better

Starting with Version 7.1.5, Apryse's Android SDK ships with a brand new viewer [`PdfViewCtrlTabHostFragment2`](https://sdk.apryse.com/api/android/javadoc/reference/com/pdftron/pdf/controls/PdfViewCtrlTabHostFragment2.html) which includes an updated user interface containing: improvements to the annotation toolbar, a better multi-tab navigation experience, improvements to stamp and signature flows, and more. `PdfViewCtrlTabHostFragment2` is a drop-in replacement for `PdfViewCtrlTabHostFragment` and steps for migrating from the old viewer can be found in migration guides.

`PdfViewCtrlTabHostFragment` will continue to use the existing UI, however this will be deprecated in future versions of Apryse.

You can check out the `new-ui` branch in the [Android Samples GitHub repository](https://github.com/ApryseSDK/pdftron-android-samples/tree/new-ui/) to see this new UI in action.

## Annotation Toolbar

The annotation toolbar has been completely revamped in order to accommodate our ever expanding set of tools. The Pan tool bas been removed from the toolbar and the toolbar itself is now scrollable. By default when no tools are selected in the toolbar, the pan tool is selected.

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-c5790d629455a6a7c992a2b42e4492c47f0acd23%2F9c4ee5625625f1966fba3f0beff3082a68a7d16e-600x1067.gif?alt=media)

## Annotation Toolbar Switcher

In order to help users find the right tool for the job, we've grouped the tools into specific toolbars. For example some new toolbars are: Annotation Toolbar, Draw Toolbar, Fill and Sign Toolbar, Prepare Form Toolbar, Insert Toolbar, Measure Toolbar, and Pens Toolbar.

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-e6e77a4bc733fc69e57b89cd5c6105a094be94b4%2Fbfad304bbd895b3138231893ea80d174a0f4c7f5-436x779.png?alt=media)

## Multi-tab Switcher Dialog

The tab layout for switching between multiple documents in the viewer has been removed on Phones. Instead a new multi-tab switcher has been added to let users manage their document tabs.

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-bab9e3a71d6530bc6791775a5ad5d55a29c61cc4%2F7e18fe60c6cbb6e4a480589051fd596bc18816f7-432x565.png?alt=media)

## Preset Bar

A new preset bar has been added to let users quickly switch between styles when creating annotations.

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-0372335cca0d60d06137cbcd28f380a29e8bafaa%2F39c8b40266f78fad841a3774db09d55c506d1428-437x49.png?alt=media)

## Bottom Navigation Bar

The bottom navigation bar has revamped and provides one-tap access to: the page thumbnail viewer, text search, reading mode, and the annotation/outline/bookmark list. The thumbnail slider has been moved to another part of the viewer, which is described in the next section.

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-088616107ea224e96d5f9cefb16016a68bb01337%2Fb327adffd1fa09bd83af3542b16ad1b2e287a40c-436x48.png?alt=media)

## Thumbnail Slider

The thumbnail slider will now be shown horizontally above bottom navigation bar if the viewer is in horizontal scroll mode.

If the viewer is in vertical scroll mode, the thumbnail slider will now shown vertically along the right edge of the viewer.

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-b0cb2f035c84335488416aca60d3c9191f5458c1%2F6e1e492c1662a0298f852b7dbd823926a8c636d0-600x1067.gif?alt=media)

## Edit Toolbars

Tools in the annotation toolbars can be arranged by the user to fit their needs.

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-d37dba7c2a89a9145fc14c98a2c4d55d2ec58435%2Fc6b20b2c2adabcf6d27fe2c2be923f281f1077f8-435x441.png?alt=media)

## Favorite Toolbar

In addition, users can now build their own toolbar from scratch using any one of our annotation toolbar tools.

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-726c3a7b4cc3d8c1d5cb2a35f8a2da49797ed94e%2F947aadf0c8b7089b541ea85501c532252cd2587f-435x746.png?alt=media)

## Tablet User Interface

For tablet devices, the user interface is slightly modified to better fit the larger screen size. The bottom navigation bar is removed,and the buttons are moved to the toolbar menu, In addition, the preset bar is embedded in the annotation toolbar to make use of the extra space and provide more room to view the document.

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-380279bc55be5c7386eb6e346c7fabbf8e8e05e8%2F3715498e49877438954ade8e293acccdf5897e96-674x919.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.apryse.com/android/viewer/new-document-viewer-ui.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
