Some test text!

keyboard_arrow_down

Get started

Download PDFTron SDK
play_arrow

Quick start - view a document

Integrate with NuGetIntegrate manuallyRun samplesAdd license keyUpdate to latest version
keyboard_arrow_down

Xamarin.Forms

keyboard_arrow_down

Fundamentals

Java binding (Android)Objective-C binding (iOS)Code sharingDocument lockingDocument saving
keyboard_arrow_down

FAQ

System requirementsPDFTron full vs. standardReduce size of APK
keyboard_arrow_down

Document Viewer

keyboard_arrow_down

Document Viewer components

keyboard_arrow_down

Annotation and collaboration

OverviewToolManager setupRead only mode
play_arrow

Disable annotation creation and editing

play_arrow

Default annotation properties

play_arrow

Change tool mode

Xamarin.AndroidXamarin.iOS
play_arrow

Events

play_arrow

Override annotation handling

Show and hide existing annotationsRealtime collaboration
keyboard_arrow_down

Advanced customization

play_arrow

Add a custom view to a page

Create a custom toolPage coloring modePage fit modePage layout modeScrolling direction
keyboard_arrow_down

Conversion

keyboard_arrow_down

Parsing and extraction

keyboard_arrow_down

Digital signatures

keyboard_arrow_down

Search

keyboard_arrow_down

Advanced topics

keyboard_arrow_down

Troubleshooting

keyboard_arrow_down

Reference

LocalizationIcon cheat sheet
keyboard_arrow_down

PDF Processing API

Run sampleskeyboard_arrow_down

Run samples

In this document
chevron_rightXamarin.Android samples
chevron_rightCompleteReader project
chevron_rightPDFNetAndroidXamarinSample project
chevron_rightAndroidMiscellaneousSamples project
chevron_rightXamarin.iOS samples
chevron_rightPDFNetiOSXamarinSample project
chevron_rightiOSMiscellaneousSamples project
chevron_rightXamarin.Forms sample
An evaluation or commercial license key is required to run PDFTron. If you are evaluating the SDK and do not have a key, please obtain one, and then visit this page via the link included in the trial email. If your company has licensed PDFTron then you already received your key in an email from team@pdftron.com. See sign in for more details.

To run each of the samples, first, add your PDFTron license key to \samples\Common\Key.cs file:

public static string LicenseKey = "your_license_key_goes_here";

linkXamarin.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:

APK for x86APK for armeabi-v7a

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.

linkXamarin.iOS samples

PDFTron for Xamarin.iOS ships with two 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 via Visual Studio.

  • Open \projectSrc\PDFNetiOSXamarin\PDFNetiOSXamarin.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 simulator, then deploy to device.

linkPDFNetiOSXamarinSample project

This sample shows how to use PDFViewCtrl to make a PDF viewer and annotator. It also has code snippets such as showing how to use AnnotationToolbar, bookmark controls etc.

linkiOSMiscellaneousSamples 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 AndroidMiscellaneousSamples project.

linkXamarin.Forms sample

This sample shows how to use PDFTron for Xamarin in Xamarin.Forms project via PageRenderer. You can run this sample on Android, iOS and UWP. It shows a simple PDFViewCtrl with annotation functionality. Detailed tutorial can be found here.