Getting started with XFINIUM.PDF Viewer in iOS applications

This tutorial will show how to get started with XFINIUM.PDF Viewer in Xamarin.iOS applications.

1. Create a new iOS application using Visual Studio for Mac.

Getting started with XFINIUM.PDF viewer in iOS applications

2. Add references to xfinium.pdf.xamarin.ios.dll, xfinium.pdf.render.xamarin.ios.dll, xfinium.pdf.view.xamarin.ios.dll, xfinium.graphics.xamarin.ios.coregraphics.dll in your project.

Getting started with XFINIUM.PDF viewer in iOS applications

3. Open the application storyboard with Visual Studio iOS designer.

Getting started with XFINIUM.PDF viewer in iOS applications

4. Locate the PdfCoreView control in the Toolbox (in the Custom Controls section), add it to the storyboard and set its name to ‘documentView‘.

Getting started with XFINIUM.PDF viewer in iOS applications

5. Add a test PDF file to application and set its BuildAction to Content.

Getting started with XFINIUM.PDF viewer in iOS applications

6. In view controller’s ViewDidLoad method create a PdfVisualDocument object, set the documentView.Document property with the PdfVisualDocument object and load a file in the document.

Getting started with XFINIUM.PDF viewer in iOS applications

6. Run the application.

Getting started with XFINIUM.PDF viewer in iOS applications

Leave a Reply