Some test text!

keyboard_arrow_down

Get started

Download PDFTron SDKIntegrate with NuGetIntegrate manuallyRun samplesAdd license keyQuick start - view a documentUpdate to latest version
keyboard_arrow_down

Xamarin.Forms

keyboard_arrow_down

Fundamentals

Java binding (Android)Objective-C binding (iOS)Code sharing
keyboard_arrow_down

Document Viewer (Android)

keyboard_arrow_down

Document Viewer (iOS)

Show a document in a ViewControllerShow documents in a tabbed ViewController
keyboard_arrow_down

Document Viewer components

PDFViewCtrl (Android)PDFViewCtrl (iOS)ReflowAnnotation toolbarAnnotation style editorPage sliderAnnotation listDocument outlineUser bookmark listList containerThumbnail browserAdd pages dialogRotate pages dialogView mode dialogCrop pages dialog
keyboard_arrow_down

Annotation and collaboration

OverviewToolManager setupDisable annotation creation/editingOverride annotation handling
keyboard_arrow_down

Advanced customization

Add a custom view to a pageCreate a custom toolPage coloring modePage fit modePage layout modeRealtime collaboration
keyboard_arrow_down

Conversion

Convert documents to PDFConvert HTML to PDF
keyboard_arrow_down

Search

Inline text search
keyboard_arrow_down

Advanced topics

Document savingDocument locking
keyboard_arrow_down

FAQ

System RequirementsPDFTron full vs. standardBuild split APKsLocalizationIcon cheat sheet
keyboard_arrow_down

PDF Processing API

What is PDFNet?Opening a documentSerializing (saving) a documentWorking with pagesWorking with Page ContentWorking with BookmarksWorking with Interactive Forms (AcroForms)PDF SecurityLow-level PDF APIError handling
Page sliderkeyboard_arrow_down

Page slider

In this document
chevron_rightIn Xamarin.Android
chevron_rightIn Xamarin.iOS

linkIn Xamarin.Android

Using thumbnail slider in Xamarin.Android is identical to using ThumbnailSlider in Android. See tutorial here.

For example, the equivalent of the example provided in the Android guide will be:

<pdftron.PDF.Controls.ThumbnailSlider
    android:id="@+id/thumbseekbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true" />

If ThumbnailSlider is in the same layout as PDFViewCtrl, then:

<pdftron.PDF.Controls.ThumbnailSlider
    android:id="@+id/thumbseekbar"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    app:pdfviewctrlId="@id/pdfviewctrl" />

If ThumbnailSlider is not in the same layout as PDFViewCtrl, then:

var thumbnailSlider = FindViewById<ThumbnailSlider>(Resource.Id.thumbseekbar);
thumbnailSlider.SetPdfViewCtrl(mPdfViewCtrl);

linkIn Xamarin.iOS

Using thumbnail slider in Xamarin.iOS is identical to using ThumbnailSliderViewController in iOS. See tutorial here.

For example, the equivalent of the example provided in the iOS guide will be:

thumbnailSliderViewController = new pdftron.PDF.Controls.ThumbnailSliderViewController(mPdfViewCtrl);
thumbnailSliderViewController.View.TranslatesAutoresizingMaskIntoConstraints = false;

AddChildViewController(thumbnailSliderViewController);
View.AddSubview(thumbnailSliderViewController.View);

NSLayoutConstraint.ActivateConstraints(new NSLayoutConstraint[] {
    thumbnailSliderViewController.View.LeadingAnchor.ConstraintEqualTo(this.View.LeadingAnchor),
    thumbnailSliderViewController.View.WidthAnchor.ConstraintEqualTo(this.View.WidthAnchor),
    thumbnailSliderViewController.View.BottomAnchor.ConstraintEqualTo(this.View.BottomAnchor)
});
thumbnailSliderViewController.DidMoveToParentViewController(this);

mPdfViewCtrl.PageNumberChangedFrom += (sender, e) =>
{
    thumbnailSliderViewController?.SetSliderValue(e.NewPageNumber);
};

Populate with thumbnail images:

mPdfViewCtrl.GotThumbAsync += (sender, e) =>
{
    if (e.Image == null)
    {
        return;
    }
    this.thumbnailSliderViewController?.SetThumbnail(e.Image, e.Page_num);
};