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
View mode dialogkeyboard_arrow_down

View mode dialog

This tutorial only applies to Xamarin.Android.

Using ViewModePickerDialogFragment in Xamarin.Android is identical to using ViewModePickerDialogFragment in Android. See tutorial here.

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

var viewModeDialog = pdftron.PDF.Dialog.ViewModePickerDialogFragment.NewInstance(mPdfViewCtrl.PagePresentationMode,
    false, mReflowControl.Visibility == ViewStates.Visible, 0);
viewModeDialog.SetStyle((int)DialogFragmentStyle.Normal, Resource.Style.CustomAppTheme);
viewModeDialog.Show(this.SupportFragmentManager, "view_mode_picker");

viewModeDialog.CustomColorModeSelected += (sender, e) =>
{
    // save the selection so we can retrieve it next time
    PdfViewCtrlSettingsManager.SetCustomColorModeBGColor(this, e.BgColor);
    PdfViewCtrlSettingsManager.SetCustomColorModeTextColor(this, e.TxtColor);
    PdfViewCtrlSettingsManager.SetColorMode(this, PdfViewCtrlSettingsManager.KeyPrefColorModeCustom);
    // Do something with e.BgColor and e.TxtColor
};

viewModeDialog.ViewModeColorSelected += (sender, e) =>
{
    // save the selection so we can retrieve it next time
    PdfViewCtrlSettingsManager.SetColorMode(this, e.ColorMode);
    // Do something with e.ColorMode
};

viewModeDialog.ViewModeSelected += (sender, e) =>
{
    // Do something with e.ViewMode
};
To learn about setting page presentation mode, see PDFViewCtrl page presentation mode.
To learn about setting page color mode, see PDFViewCtrl color modes.
To learn about reflow, see reflow.
To learn about cropping pages, see crop page dialog.