Category Archives: Tutorial

Getting Started with Cross-Platform PDF Processing Using Xamarin.Android and PDFNet SDK

Introduction

This tutorial shows the minimum steps needed to add a PDF viewing and annotating component to a Xamarin.Android app using PDFNet SDK. In this tutorial, you will create a simple PDF viewing and annotating app. You will also create an Android Java Bindings Library Project that allows you to customize our Tools library.

Note that the completed sample project described in Part 2 and Part 3 can be found in the samples folder located inside the PDFNet component package. The completed sample project described in Part 2-4 is available by request from here.

The tutorial is divided into 6 parts:

To complete this tutorial, you will need to install and setup Xamarin.Android as described in this article.

Continue reading

Getting Started with Cross-Platform PDF Processing Using Xamarin.iOS and PDFNet SDK

Introduction

This tutorial shows the minimum steps needed to add a PDF viewing and annotating component to a Xamarin.iOS app using PDFNet SDK. In this tutorial, you will create a simple PDF viewing and annotating app. You will also create an iOS Objective-C Bindings Library Project that allows you to customize our Tools library.

Note that the completed sample project described in Part 1 and Part 2 can be found in the samples folder located inside the PDFNet component package. The completed sample project described in Part 1-3 is available by request from here.

The tutorial is divided into 5 parts:

To complete this tutorial, you will need to install the latest version of XCode, which is required because its compilers are used by Xamarin. If you are using an out of date version of XCode you may encounter linker errors. You will also need to install and setup Xamarin.iOS as described in this article.

Continue reading

Working with PDF RichMedia annotations

RichMedia annotations can be used to embed videos and sound files in PDF documents. When opened in a compliant reader, the user can play them back directly as part of the page content, usually by just clicking on the video. This blog will examine how a RichMedia annotation is embedded in PDF, how PDFNet can be used to extract and create the movie data for playback.

Continue reading

Streaming a PDF From the Web to a Mobile or Desktop App

Wouldn’t it be nice to be able to view a remote PDF the same way as one can view an online video? By this we mean you can see the beginning of the content almost immediately, and if you move to the middle of the content, it is prioritized and loaded very quickly, before other parts.

Unfortunately, with remotely stored PDFs, this is not how things usually work. What typically happens is that the entire file must be downloaded before it can be opened and viewed. This is the case for two reasons:

  1. PDF documents are not typically linearized (or in Adobe lingo “fast web view”ed). This means that the contents of page twenty, for example, can actually be located in many different places within the file, with no way of being able to quickly determine where the different pieces are. Without this information, the entire document must be downloaded before page two can be displayed.
  2. Even if a document is linearized, most viewers are not equipped to show partial content. They are designed to work on complete documents and will reject partial documents as corrupted.

There is, however, a better way.

If you’re building a website or HTML5 app, see this post for how to display a PDF in HTML. If you’re building a native program for desktops (Windows, Mac, Linux) or mobile (iOS, Android, WinRT, Windows Phone 8), then read on…

Continue reading