> 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/xamarin/viewer/apis.md).

# APIs for PDF Viewer in Xamarin

Discover utility classes for document viewing in Xamarin.Android and Xamarin.iOS with PDFTron. Learn about DocumentActivity, PdfViewCtrlTabHostFragment, PdfViewCtrlTabFragment2, PTDocumentController,

The following are utility classes that can be used for document viewing.

**Xamarin.Android C#**

[pdftron.PDF.Controls.DocumentActivity](https://sdk.apryse.com/api/xamarinandroid/tools/api/pdftron.PDF.Controls.DocumentActivity.html) DocumentActivity is derived from androidx.appcompat.app.AppCompatActivity and is an all-in-one document reader and PDF editor.

[pdftron.PDF.ControlsPdfViewCtrlTabHostFragment](https://sdk.apryse.com/api/xamarinandroid/tools/api/pdftron.PDF.Controls.PdfViewCtrlTabHostFragment2.html) The PdfViewCtrlTabHostFragment2 shows multiple PdfViewCtrlTabFragment2 in tab layout.

[pdftron.PDF.Controls.PdfViewCtrlTabFragment2](https://sdk.apryse.com/api/xamarinandroid/tools/api/pdftron.PDF.Controls.PdfViewCtrlTabFragment2.html) The PdfViewCtrlTabFragment2 shows com.pdftron.pdf.PDFViewCtrl out of the box with controls such as AnnotationToolbarComponent, DocumentSlider, ThumbnailsViewFragment etc.

[pdftron.PDF.PDFViewCtrl](https://sdk.apryse.com/api/xamarinandroid/pdfnet/api/pdftron.PDF.PDFViewCtrl.html) PDFViewCtrl is derived from android.view\.ViewGroup and encapsulates a rich set of functionalities for interactive viewing of PDF documents.

**Xamarin.iOS C#**

[pdftron.PDF.Controls.PTDocumentController](https://sdk.apryse.com/api/xamarinios/tools/api/pdftron.PDF.Controls.PTDocumentController.html) PTDocumentController is part of the tools library and is an all-in-one document reader and PDF editor.

[pdftron.PDF.Controls.PTTabbedDocumentViewController](https://sdk.apryse.com/api/xamarinios/tools/api/pdftron.PDF.Controls.PTTabbedDocumentViewController.html) PTTabbedDocumentViewController hosts multiple PTDocumentControllers with a tabbed interface.

[pdftron.PDF.PDFViewCtrl](https://sdk.apryse.com/api/xamarinios/tools/api/pdftron.PDF.PDFViewCtrl.html) PTPDFViewCtrl is a UIView and encapsulates a rich set of functionalities for interactive viewing of PDF documents.


---

# 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/xamarin/viewer/apis.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.
