# Document Viewer

## Content



The PrintDocument provides a **DocumentViewer** control, to view fixed document content in a paginated format. This previewing control comes with printing, zooming and text-searching capabilities.

As you can observe in the snapshot below, there is a top toolstrip and a bottom text search tool in the DocumentViewer application.

![](https://cdn.mescius.io/document-site-files/images/e29a4461-e07b-44c3-94f3-5fcd6ed96aaf/images/documentviewer-helloworld.png)

The commands on the toolstrip for Document Viewer are listed below with their icon images and a brief description.

| **Toolbar Commands**   |   **Icons**   |   **Description**   |
| --- | --- | --- |
| Print |   ![](https://cdn.mescius.io/document-site-files/images/e29a4461-e07b-44c3-94f3-5fcd6ed96aaf/images/print.png)   | Lets you print the document. |
| Copy |   ![](https://cdn.mescius.io/document-site-files/images/e29a4461-e07b-44c3-94f3-5fcd6ed96aaf/images/copy-button-docviewer.png)   | Lets you copy the text from the document. |
| Zoom in |   ![](https://cdn.mescius.io/document-site-files/images/e29a4461-e07b-44c3-94f3-5fcd6ed96aaf/images/zoom-in.png)   | Lets you zoom in the document content. |
| Zoom out |   ![](https://cdn.mescius.io/document-site-files/images/e29a4461-e07b-44c3-94f3-5fcd6ed96aaf/images/zoom-out.png)   | Lets you zoom out the document content. |
| 100% |   ![](https://cdn.mescius.io/document-site-files/images/e29a4461-e07b-44c3-94f3-5fcd6ed96aaf/images/100-percent.png)   | Lets you zoom the document to 100% of the normal size. |
| Page width |   ![](https://cdn.mescius.io/document-site-files/images/e29a4461-e07b-44c3-94f3-5fcd6ed96aaf/images/page-width.png)   | Lets you zoom the page, so that the width matches the window. |
| Whole Page |   ![](https://cdn.mescius.io/document-site-files/images/e29a4461-e07b-44c3-94f3-5fcd6ed96aaf/images/whole-page.png)   | Lets you zoom the page in or out as required to fit the whole page in the preview window. |
| Two Pages |   ![](https://cdn.mescius.io/document-site-files/images/e29a4461-e07b-44c3-94f3-5fcd6ed96aaf/images/two-pages.png)   | Lets you zoom the document so you can see multiple pages at once. |

Not just printing and zooming, you can also search for text in the DocumentViewer using its search toolbar, which comprises different options as given below:

![](https://cdn.mescius.io/document-site-files/images/e29a4461-e07b-44c3-94f3-5fcd6ed96aaf/images/searchoption-docviewer.png)

*   **Match whole word only**: Matches the entire text only.
*   **Match case**: Matches letter casing while performing the text search.
*   **Match diacritic**: Matches text with matching diacritics in a right-to-left language document.
*   **Match kashida**: Match text with matching kashidas in a document with Arabic content.
*   **Match alef hamza**: Match text with matching alef hamzas in a document with Arabic content.