Xamarin PDF Viewer is a feature-rich and high-performance control to view and review 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.
Load PDF files with thousands of pages instantly.
On-demand loading and virtualization means the control holds only the minimum required pages at runtime to reduce memory consumption.
Render pages on demand to help reduce initial load time when working with large documents.
The Xamarin.Forms PDF Viewer library has a built-in toolbar that can be customized.
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 items on the built-in toolbar.
Disable the built-in toolbar and create a custom toolbar in your application.
Select text in a PDF document and copy it to the clipboard. This is helpful for sharing text content with others.
Locate all occurrences of given text and navigate through them easily.
PDF Viewer in Xamarin.Forms supports different internal and external navigations.
Bookmarks saved in PDF files are loaded and made ready for easy navigation. Navigate within the PDF file of the topics bookmarked already.
The hyperlink navigation feature enables navigation to URLs (website links) in a PDF file.
Table of contents navigation allows users to navigate to different parts of a PDF file that are listed in the table of contents section.
View PDF pages one by one in a horizontal fashion.
Print the loaded PDF document with annotation and signature details.
Review PDF files using a rich set of annotating tools.
Highlight important text in PDF files. Also, customize the appearance of the highlight or remove it.
Underline notable text in PDF files. Customize the appearance of the underline or remove it.
Strike through unimportant text in PDF files. Customize the appearance of the strikethrough or remove it.
Draw freehand on the pages of PDF files. Move, resize, remove, or edit the appearance of the freehand drawings.
Include lines in PDF files. Move, resize, remove, or edit the appearance of the lines.
Include arrows in PDF files. Move, resize, remove, or edit the appearance of the arrows.
Include rectangles in PDF files. Move, resize, remove, or edit the appearance of the rectangles.
Include ellipses and circles in PDF files. Move, resize, remove, or edit the appearance of the ellipses.
Include polygons in PDF files. Move, resize, remove, or edit the appearance of the polygons.
Include clouds in PDF files. Move, resize, remove, or edit the appearance of the clouds.
Include free text in PDF files. Move, resize, remove, or edit the appearance of the free text.
Add custom stamp annotations to the PDF files. The stamps can be resized, moved, removed, and saved.
Add handwritten signatures to PDF files. The signatures can be resized, moved, removed, and saved.
Fill, edit, flatten, and save AcroForms fields in PDF files.
Convert the pages of PDF files to images in JPG, PNG, and BMP formats.
The Xamarin PDF Viewer supports the import and export of annotations and form data.
Import and export annotations in FDF and XFDF formats.
Import and export form data in FDF, XFDF, XML, and JSON formats.
All static text within the PDF Viewer can be localized to any supported language.
Xamarin PDF Viewer allows you to view the Password protected PDFs. It has a built-in view for entering the password of encrypted PDF documents before display. Also, you can disable this built-in view and design a custom view.
You can zoom in and zoom out of the PDF document by pinching or changing the zoom percentage programmatically using an API.
Easily get started with the Xamarin.Forms PDF Viewer using a few simple lines of XAML and C# code sample, as demonstrated below. Also explore our Xamarin.Forms PDF Viewer Example that 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));
}
}
}
}
You can find our Xamarin PDF Viewer demo here.
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 and five or fewer developers.
A good place to start would be our comprehensive getting started documentation.
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.