Some test text!

Package sampleskeyboard_arrow_down

Run samples

There are several samples available for Xamarin.Android, Xamarin.iOS and Xamarin.Forms which will allow you to test and experience the many features included in PDFTron's library.

Xamarin.Android samples

PDFTron for Xamarin.Android ships with three sample projects each containing examples that you could use in your project. All samples are included in the download package under \samples folder. You can run any of the sample projects using Visual Studio.

  • Open \projectSrc\PDFNetAndroidXamarin\PDFNetAndroidXamarin.sln or the .csproj file for project of interest in latest version of Visual Studio.
  • Select the project of interest as the startup project.
  • Clean and build the project.
  • Choose a deploy target, either a device or an emulator, then deploy to device.

linkCompleteReader project

This sample shows how to use SimpleReaderActivity and how to change its configuration. SimpleReaderActivity is an all-in-one document reader and PDF editor. In addition to PDF files, it also supports viewing of other file extensions such as .docx, .doc, .pptx, .xlsx, .md, .cbz and various image formats. It allows stream conversion of these non-pdf documents to PDF format so you can view the document while conversion happens. In this activity, you can read, annotate, sign, fill in PDF forms and more.

Download sample APK here:

linkPDFNetAndroidXamarinSample project

This sample shows how to use PDFViewCtrl to make a universal viewer that supports PDF files as well as other file extensions such as .docx, .doc, .pptx, .xlsx, .md, .cbz and various image formats. It supports annotating on PDF files. It also has code snippets such as showing how to add a custom view on a PDF page, how to find text, how to hide tools from QuickMenu and AnnotationToolbar, how to show reflow mode, night mode etc.

linkAndroidMiscellaneousSamples project

This app shows the functionalities of the PDFTron SDK and includes the samples found in the sample code page. Inspect its source code to learn how to use some of the main classes and features of the SDK, or just run the sample and check the results.

This project shares all of its source code with iOSMiscellaneousSamples project.

Get the answers you need: Support


Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

Join our live demo to learn about use cases & capabilities for WebViewer

Learn more