> 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/basic-operations.md).

# Basic operations

- [Basic document operations](https://docs.apryse.com/xamarin/basic-operations/basics.md): Learn how to open, save, and lock PDF documents in a multithreaded environment. Get started with these essential document management tips! The Apryse Xamarin SDK streamlines secure, serverless documen
- [Add text search bar to Xamarin PDF viewer](https://docs.apryse.com/xamarin/basic-operations/basics/find-text-a.md): Learn how to add text search functionality to your Xamarin.Android viewer with this step-by-step guide. Implement text search UI components and programmatically search for text in PDFViewCtrl. Optimiz
- [Annotations style editor in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/style-editor-dialog.md): Learn how to customize annotation style dialog in Xamarin.Android with AnnotStyleDialogFragment. Change colors, thickness, and more with this advanced color picker. Customize your app's annotation sty
- [Page fit & default zoom mode in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/page-view-mode.md): Learn how to control default zoom levels for pages and documents with PDFViewCtrl's page view mode. Set different page view modes for optimal viewing experience. The Apryse Xamarin SDK streamlines sec
- [Add text search bar to Xamarin PDF viewer](https://docs.apryse.com/xamarin/basic-operations/basics/find-text-i.md): Learn how to implement text search functionality in Xamarin.iOS using the PTTextSearchViewController class. Highlight search results, navigate through documents, and customize search options. Add the
- [Page color mode](https://docs.apryse.com/xamarin/basic-operations/basics/night-mode-ios.md): Enhance your PDF viewing experience with PDFViewCtrl's special color modes: night mode, inverted color mode, and custom color mode. Learn how to set and customize these modes for optimal readability.
- [Day and night themes in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/daynight-themes.md): Learn how to implement a dark theme in Xamarin.Android using the DayNight theme in AppCompat. Switch between light and dark themes in your activity with this step-by-step tutorial. The Apryse Xamarin
- [Page fit & default zoom mode in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/page-fit.md): Control default zoom levels of pages and documents with PDFViewCtrl's page view mode. Learn about different page view modes supported and how to set default page fit mode dynamically. Optimize your vi
- [Open MS Office documents and convert to PDF in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/non-pdf.md): Learn how to display non-PDF files in Xamarin.Android using PDFViewCtrl. Convert various file types to PDF seamlessly, including Office files and images. Follow step-by-step instructions for easy impl
- [Reflow document content in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/reflow.md): Learn how to create a reflowable layout for PDF documents in Xamarin.Android. Implement a reflow pager for easy document navigation and customization options like text size and background color. The A
- [Page layout/presentation mode in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/page-presentation-mode.md): Discover the various page layouts supported by PDFViewCtrl, including Single, Facing, and more. Learn how to set the page presentation mode for your PDFViewCtrl effortlessly. The Apryse Xamarin SDK st
- [List container to customize horizontal menu layout in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/navigation-lists.md): Learn how to use the PTNavigationListsViewController class in Xamarin.iOS to display annotation lists, document outlines, and more with a UITabBarController-like interface. Customize your navigation l
- [Understanding PDF coordinates](https://docs.apryse.com/xamarin/basic-operations/basics/coordinates.md): Learn how to understand and manage coordinates in Xamarin.Android for PDFViewCtrl. Get insights on PDF page, screen, and scrolling coordinates to optimize your app's performance. The Apryse Xamarin SD
- [Show and hide existing annotations in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/show-hide-annot.md): Learn how to show and hide annotations in Xamarin.Android PDFViewCtrl. Hide specific or all annotations with simple methods. Update and redraw content for changes. The Apryse Xamarin SDK streamlines s
- [Customize the document viewer in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/fragment-config.md): Learn how to customize Xamarin.Android's DocumentActivity and PdfViewCtrlTabHostFragment2 using configuration classes for a tailored document viewer experience. Hide UI components, disable functionali
- [Generate PDF page thumbnails in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/pdf-thumbnails.md): Learn how to display PDF document page thumbnails in Xamarin.Android using Apryse's library. Get thumbnail Bitmap images for each page with PDFViewCtrl. Cancel thumbnail requests easily. The Apryse Xa
- [Convert HTML to PDF in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/html-to-pdf.md): Convert HTML to PDF in Xamarin with a simple to use HTML to PDF API, includes code samples.
- [Annotation sync for Xamarin viewer](https://docs.apryse.com/xamarin/basic-operations/basics/annotation-syncing.md): Learn how to handle import and export of annotation changes in Xamarin.Android with Apryse. Sync annotations between clients for seamless collaboration. Get step-by-step instructions and requirements
- [Printing a PDF in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/printing.md): Discover how Apryse SDK simplifies printing tasks with Print.startPrintJob. Learn how to effortlessly show the system print dialog with a document using this library. The Apryse Xamarin SDK streamline
- [Customize quick menu in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/quick-menu.md): Learn how to use QuickMenu in Xamarin.Android for convenient annotation popup menus on PDFViewCtrl. Customize, hide, and manage quick menu items easily. The Apryse Xamarin SDK streamlines secure, serv
- [Cropping PDF pages in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/crop-pages.md): Cropping PDF pages in Xamarin is easy with the Apryse library, you can crop pages manually or automatically, as well as reset document pages to their original size. The UserCropDialogFragment allows a
- [Add new pages to existing PDF document in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/add-page.md): Learn how to use the AddPageDialogFragment in Xamarin.Android to create new pages with different types, sizes, and colors for your PDF documents. Customize your pages with various properties like Page
- [Page color mode](https://docs.apryse.com/xamarin/basic-operations/basics/night-mode.md): Enhance your PDF viewing experience with PDFViewCtrl's special color modes: night mode, inverted color mode, and custom color mode. Learn how to set these modes and customize colors for optimal readab
- [Annotation style editor for Xamarin viewer](https://docs.apryse.com/xamarin/basic-operations/basics/annot-style.md): Learn how to edit annotation styles easily in Xamarin.iOS with PTAnnotStyleViewController. Customize colors, use presets, and manage annotation style changes effectively. Click to explore more! The Ap
- [Rotate document pages in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/rotate-pages.md): Learn how to rotate pages in Xamarin.Android with RotateDialogFragment. Rotate pages by 90, 180, or 270 degrees and view thumbnails of the current page. Follow this tutorial for easy implementation! T
- [Read only mode: disable annotations, editing & user interactions](https://docs.apryse.com/xamarin/basic-operations/basics/pdf-read-only.md): Learn how to disable PDF editing, user interaction, annotation creation, and more in Xamarin.Android with this comprehensive tutorial. Optimize your app's functionality now! The Apryse Xamarin SDK str
- [View mode dialog](https://docs.apryse.com/xamarin/basic-operations/basics/view-mode-dialog.md): Learn how to use ViewModePickerDialogFragment in Xamarin.Android to pick page layout mode, select page color mode, rotate and crop pages. Set up view mode dialog and implement events for user interact
- [Viewer](https://docs.apryse.com/xamarin/basic-operations/basics/viewer.md)
- [Customize a document view controller in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/viewer/viewer-configuration-legacy.md): Optimize your document viewer with the legacy PTDocumentViewController class guide. Upgrade to PTDocumentController for enhanced viewing experience and new features. Learn how to customize viewer clas
- [Show Documents in a Tabbed ViewController in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/viewer/tabbed-viewer.md): Learn how to use the PTTabbedDocumentViewController class to create a tabbed interface for multiple PTDocumentControllers. Customize tabs, manage tab bar visibility, and more. Explore now! The Apryse
- [Document view controller in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/viewer/document-viewer.md): Discover the PTDocumentController for PDF viewing and annotating with a range of controls like annotation toolbar, bookmarks, and more. Learn how to integrate this powerful tool into your project seam
- [Customize a document view controller in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/viewer/viewer-configuration.md): Learn how to customize the PTDocumentController and PTTabbedDocumentViewController classes for your document viewer needs. Achieve modifications easily with this guide on APIs and UI framework. The Ap
- [Document view controller in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/viewer/document-viewer-legacy.md): Learn how to use the legacy PTDocumentViewController class for PDF viewing and annotating. Upgrade to PTDocumentController for the latest features. Find out more in this comprehensive guide. The Aprys
- [Display PDF using PDFViewCTRL in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/viewer/pdfviewctrl.md): Learn how to display PDFs in Xamarin.iOS using PTPDFViewCtrl. Follow step-by-step instructions for adding and customizing PDFs in your app. Optimize your PDF viewing experience now! The Apryse Xamarin
- [Show Documents in a Tabbed ViewController in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/viewer/tabbed-viewer-legacy.md): Learn how to optimize your viewer with the Legacy Viewer guide. Upgrade to PTDocumentController for the best experience. Explore tabbed viewer control and more. The Apryse Xamarin SDK streamlines secu
- [Tools](https://docs.apryse.com/xamarin/basic-operations/basics/tools.md)
- [ToolManager events](https://docs.apryse.com/xamarin/basic-operations/basics/tools/toolmanager-events.md): Learn how to utilize ToolManager events in Xamarin.Android for efficient app coordination. Register callbacks, get notified on touch and annotation events, and more. Explore all event APIs here! The A
- [Change & set default tool mode](https://docs.apryse.com/xamarin/basic-operations/basics/tools/set-tool-to-toolmanager.md): Learn how to set up the ToolManager in Xamarin.Android with this tutorial. Discover how to change the default Pan Tool using ToolManager.setTool(ToolManager.Tool) API. Explore more here! The Apryse Xa
- [Customize default annotation tool style in Xamarin](https://docs.apryse.com/xamarin/basic-operations/basics/tools/tool-style.md): Learn how to customize annotation styles in Xamarin.Android using ToolManager. Find the mapping for annotation types and tool modes, and adjust colors, fonts, thickness, and more with XML attributes.
- [Customize annotation handling](https://docs.apryse.com/xamarin/basic-operations/basics/tools/intercept-annotation-handling.md): Learn how to customize user actions in Xamarin.Android with the Tools library. Intercept annotation events and get notified after an action. Enhance your app's functionality now! The Apryse Xamarin SD
- [Open a document](https://docs.apryse.com/xamarin/basic-operations/open.md): Learn how to open and display PDFs using Xamarin for Android, iOS, and Forms. Choose from various options like DocumentActivity, ViewController, or Document Viewer. Start viewing documents now! The Ap
- [Saving documents in Xamarin](https://docs.apryse.com/xamarin/basic-operations/save.md): Learn how to save PDF documents using PDFTron's saving APIs from the PDFDoc class. Explore different saving modes like removing unused objects, incremental saving, and linearized format for optimized
- [Lock a document](https://docs.apryse.com/xamarin/basic-operations/lock.md): Learn about Apryse version 6.0 and its new locking semantics for concurrent access of PDFDoc instances. Develop parallel applications with Apryse SDK efficiently. The Apryse Xamarin SDK streamlines se
- [Code samples for basic document operations in Xamarin](https://docs.apryse.com/xamarin/basic-operations/samples.md): Learn how to read & write a PDF file from/to memory buffer, merge, copy, delete, rearrange PDF pages, and more with this informative guide. The Apryse Xamarin SDK streamlines secure, serverless docume
- [APIs for basic document operations in Xamarin](https://docs.apryse.com/xamarin/basic-operations/apis.md): Discover utility classes for basic PDF operations in Xamarin.Android and Xamarin.iOS using C# with pdftron.PDF.PDFDoc. Enhance your PDF document handling now! The Apryse Xamarin SDK streamlines secure


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.apryse.com/xamarin/basic-operations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
