Category Archives: Uncategorized

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

This Getting Started document is for users of the PDFNet version 6.7 and greater. For users of earlier version of PDFNet, please refer to Getting Started (2014).

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 learn about an Android Java Bindings Library Project that allows you to customize our Tools library.

Note the completed sample project described in Part 2-4 is available by request from here.

The tutorial is divided into 5 parts:

Part 1: Things you should know about the library distribution
Part 2: Showing a PDF
Part 3: Adding support for Annotations, Text Selection and Form Filling
Part 4: Create customized Tools.dll from the open source Tools library
Part 5: Next steps

Continue reading

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

This Getting Started document is for users of the PDFNet version 6.7 and greater. For users of earlier version of PDFNet, please refer to Getting Started (2014).

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 learn about 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-3 is available by request from here.

The tutorial is divided into 4 parts:

  • Part 1: Showing a PDF
  • Part 2: Adding support for Annotations, Text Selection and Form Filling
  • Part 3: Create customized Tools.dll from the open source Tools library
  • Part 4: Next steps

Continue reading

Getting Started with PDFNet for iOS

This Getting Started document is for users of the PDFNet dynamic framework, version 6.7 and greater. For users of the static library, or earlier version of PDFNet, please refer to getting started with the static framework.

Introduction

This short tutorial will guide you through creating an app that can show and annotate a PDF. A completed project can be found on our GitHub repository. You should use the latest versions of the PDFNet Framework and the tools source code, available by request on our website. The tutorial is divided into four parts:

  • Part 1: Showing a PDF.
  • Part 2: Adding support for text selection, annotation creation and editing, link following and form filling.
  • Part 3: Adding support for encrypted PDF documents.
  • Part 4: Next Steps

Continue reading

PDFTron at the PDF Technical Conference 2015

PDFTron is pleased to announce that we are a sponsor and presenter at the upcoming PDF Technical Conference 2015, held October 19-20 in San Jose, California. Aimed at software developers and technical product managers encountering PDF technologies in their work, the event will consist of educational and sponsored sessions presented by experts in the PDF field.

Continue reading

Exception Handling in PDFNet for Windows Store apps

Starting with PDFNet SDK 6.2.0-BETA for Windows Store apps, it is now possible to get more useful error messages when PDFNet throws exceptions.

Due to limitations of the COM API boundary, only System.Exception could be passed from the PDFNet SDK to the consuming code. This limited the errors to those that were already defined and prevented custom information to be attached.

To overcome this, PDFNet SDK for Windows Store apps has a new class; pdfnet.Common.Exception that can be created with an HResult from a System.Exception and will be able to display the information relevant to the error that caused the Exception.

The following code snippet shows an example in how to use the new PDFNetException class:

string errText = "NONE";
try
{
	pdftron.PDF.PDFDoc doc = new pdftron.PDF.PDFDoc("not_valid");
}
catch (Exception ex)
{
	pdftron.Common.PDFNetException pdfNetEx = new pdftron.Common.PDFNetException(ex.HResult);
	errText = string.Format("Exeption at line {0} in file {1}", pdfNetEx.LineNumber, pdfNetEx.FileName);
	errText += Environment.NewLine;
	errText += string.Format("Message: {0}", pdfNetEx.Message);
}
MessageDialog errorDialog = new MessageDialog(errText);
await errorDialog.ShowAsync();

Will show the following error message:
ErrorMessage

This information will be very valuable to us if PDFNet throws an unexpected Exception. If you encounter an Exception while working with the PDFNet SDK for Windows Store apps, it is a good idea to include the full error from PDFNetException.ToSTring() with the description of the problem sent to our support team.