We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The Xamarin PDF Viewer is a feature-rich and high-performance control for viewing and reviewing PDF files in Xamarin.Forms applications. The bookmark, hyperlink, and table of contents support provides easy navigation within and outside PDF files. PDF files can be reviewed with various annotation tools.


Xamarin.Forms PDF Viewer code example

Easily get started with the Xamarin.Forms PDF Viewer using a few simple lines of XAML and C# code, as demonstrated in the following. Also explore our Xamarin.Forms PDF Viewer example, which shows you how to render and configure the PDF Viewer in Xamarin.Forms.

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:GettingStarted"
             x:Class="GettingStarted.MainPage"
             xmlns:syncfusion="clr-namespace:Syncfusion.SfPdfViewer.XForms;assembly=Syncfusion.SfPdfViewer.XForms"
             >
    <ContentPage.BindingContext>
        <local:PdfViewerViewModel></local:PdfViewerViewModel>
    </ContentPage.BindingContext>
    <Grid x:Name="pdfViewGrid">
        <syncfusion:SfPdfViewer x:Name="pdfViewerControl" InputFileStream="{Binding PdfDocumentStream}"/>
    </Grid> 
</ContentPage>
using System.IO;
using System.Reflection;
using System.ComponentModel;

namespace GettingStarted
{
    class PdfViewerViewModel : INotifyPropertyChanged
    {
        private Stream m_pdfDocumentStream;

        /// <summary>
        /// An event to detect the change in the value of a property.
        /// </summary>
        public event PropertyChangedEventHandler PropertyChanged;

        /// <summary>
        /// The PDF document stream that is loaded into the instance of the PDF Viewer. 
        /// </summary>
        public Stream PdfDocumentStream
        {
            get
            {
                return m_pdfDocumentStream;
            }
            set
            {
                m_pdfDocumentStream = value;
                NotifyPropertyChanged("PdfDocumentStream");
            }
        }

        /// <summary>
        /// Constructor of the view model class
        /// </summary>
        public PdfViewerViewModel()
        {
            //Accessing the PDF document that is added as embedded resource as stream.
            m_pdfDocumentStream = typeof(App).GetTypeInfo().Assembly.GetManifestResourceStream("GettingStarted.Assets.GIS Succinctly.pdf");
        }

        private void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }  
    }
}

High performance

Instant loading in PDF Viewer.

Instant loading

Load PDF files with thousands of pages instantly.

Less runtime memory used in PDF Viewer.

Less runtime memory

On-demand loading and virtualization means the control holds only the minimum required pages at runtime to reduce memory consumption.

Virtualized pages in PDF Viewer.

Virtualized pages

Render pages on demand to help reduce initial load time when working with large documents.


Password protection in PDF Viewer.

Password-protected PDF

The Xamarin PDF Viewer allows users to view password-protected PDF files. It has a built-in view for entering the password of encrypted PDF documents before displaying the file. This built-in view can be disabled.


Zooming

Zoom in and out of the PDF document by pinching or changing the zoom percentage programmatically using an API.

Zooming PDF.


Toolbar

The Xamarin.Forms PDF Viewer library has a built-in toolbar that can be customized.

Built-in toolbar.

Built-in toolbar

The Xamarin.Forms PDF Viewer control comes with a powerful, built-in toolbar to execute the most important actions, such as page navigation, text search, and various annotation actions.

Customize the visibility of toolbar items.

Customize visibility

Customize the visibility of items on the built-in toolbar.

Customization.

Custom toolbar

Disable the built-in toolbar and create a custom toolbar in your application.


Select and copy text

Select text in a PDF document and copy it to the clipboard. This is helpful for sharing text content with others.

Select and copy text.


Search text.

Search text

Locate all occurrences of specific text and navigate through them easily.


The PDF Viewer in Xamarin.Forms supports different internal and external navigations.

Bookmark navigation.

Bookmark navigation

Navigate to bookmarks present in the PDF Viewer and custom bookmarks dynamically added by a user. Custom bookmarks can also be renamed, deleted, and saved in the PDF file.

Hyperlink navigation.

The hyperlink navigation feature in Xamarin PDF Viewer enables navigation to URLs (website links) from a PDF file.

Table of contents navigation.

Table of contents navigation

Navigate to the different parts of a PDF file listed in the table of contents section.


Page-by-page view mode

View PDF pages one by one horizontally.

Page-by-page view mode.


Print PDF files.

Print the loaded PDF document with annotation and signature details.


Review or annotate

Review PDF files using a rich set of annotating tools.

Highlight important text.

Highlight text

Highlight important text in PDF files. Also, customize the appearance of the highlight or remove it.

Underline text.

Underline text

Underline notable text in PDF files. Customize the appearance of the underline or remove it.

Squiggly text.

Squiggly

Underline notable text in PDF files using the squiggly style. Customize the appearance of the squiggly or remove it.

Strike through unimportant text.

Strikethrough

Strike through unimportant text in PDF files. Customize the appearance of the strikethrough or remove it.

Freehand drawing.

Freehand draw (ink annotation)

Draw freehand on the pages of PDF files. Move, resize, remove, or edit the appearance of the freehand drawings.

Ink eraser.

Ink eraser

Erase unwanted ink strokes to correct mistakes made in freehand drawing using the ink tool.

Line annotation.

Lines

Include lines in PDF files. Move, resize, remove, or edit the appearance of the lines.

Arrow annotation.

Arrows

Include arrows in PDF files. Move, resize, remove, or edit the appearance of the arrows.

Rectangle annotation.

Rectangles

Include rectangles in PDF files. Move, resize, remove, or edit the appearance of the rectangles.

Ellipse annotation.

Ellipses

Include ellipses and circles in PDF files. Move, resize, remove, or edit the appearance of the ellipses.

Polygon annotation.

Polygons

Include polygons in PDF files. Move, resize, remove, or edit the appearance of the polygons.

Cloud annotation.

Clouds

Include clouds in PDF files. Move, resize, remove, or edit the appearance of the clouds.

Polyline annotation.

Polylines

Include polylines in PDF files. Move, resize, remove, or edit the appearance of the polyline annotations.

Free-text annotation.

Free text

Include free text in PDF files. Move, resize, remove, or edit the appearance of the free text.

Custom stamp annotation.

Custom stamp

Add custom stamp annotations to the PDF files. The stamps can be resized, moved, removed, and saved.

Sticky note annotations.

Sticky note

Add sticky note annotations to PDF files. The sticky notes can be edited, moved, removed, and saved.


Lock annotations.

Lock annotations

Restrict edit permissions to modify or remove annotations in a document. Locked annotations can also be unlocked.


Handwritten signatures

Add handwritten signatures to PDF files. The signatures can be resized, moved, removed, and saved.

Handwritten signature.


Form filling.

PDF form filling

Fill, edit, flatten, and save AcroForms fields in PDF files.


PDF to image

Convert the pages of PDF files to images in JPG, PNG, and BMP formats.

PDF to image.


Import and export

The Xamarin PDF Viewer supports the import and export of annotations and form data.

Import and export annotations.

Import and export annotations

Import and export annotations in FDF and XFDF formats.

Import and export form data.

Import and export form data

Import and export form data in FDF, XFDF, XML, and JSON formats.


Localization

All static text within the PDF Viewer can be localized to any supported language.

Localization.




150+ XAMARIN UI CONTROLS

ALL CONTROLS
  • Xamarin.Forms
  • Xamarin.Android
  • Xamarin.iOS
The most downloaded control (based on the nuget.org download count).

Frequently Asked Questions

The Syncfusion Xamarin PDF Viewer supports the following features:

You can find our Xamarin PDF Viewer demo, which demonstrates how to render and configure PDF Viewer.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version Download Free Trial

Syncfusion Xamarin.Forms Resources

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon
Live Chat Icon For mobile