PDFRasterizer.NET now supports all Mobile platforms (BETA)

8/30/2016 By Frank 0 comments

The beta release 4.0.0.17 of PDFRasterizer.NET is our first release that includes Windows 10 Universal Application Platform, Xamarin.Android and Xamarin.iOS editions of our PDF render library.

Here is the status per mobile edition:

  • The UWP edition is stable and close to feature complete.
  • The Android edition is work in progress and still lacks support for common PDF features.
  • The iOS edition only supports rendering curves and basic colorspaces.

Download the code samples and browse the documentation


Render-pdf-from-UWP-Android-or-iOS

NuGet

PDFRasterizer.NET 4.0 is available as a NuGet package:

PM> Install-Package TallComponents.PDFRasterizer4

The NuGet package targets the following frameworks:

  • net20
  • net30
  • net40
  • net40-client
  • net40-wpf
  • MonoAndroid41
  • Xamarin.iOS10
  • uap10.0 (win10-x86, win10-x64, win10-arm)

Because the UWP edition has different DLLs for the different runtimes (x86, x64 and ARM), this edition can only be referenced as a NuGet package. All other editions (including iOS and Android) can be referenced both as a DLL and as a NuGet package.

UWP

The UWP edition is stable and close to feature complete. It supports x86, x64 and ARM processors.

Code sample

UWP Code sample: Draw a PDF page to the screen

Known restrictions

  • transparency groups are rendered opaque
  • blend modes are ignored
  • annotations are not rendered
  • exotic shadings are not rendered
  • all layers are always rendered irrespective of their visibility

Xamarin.Android

The Android edition is work in progress and still lacks support for common PDF features. Nonetheless, it already does a good job on most PDF documents.

Code sample

Android Code sample: Render PDF to a Bitmap

Xamarin.iOS

The iOS edition only supports rendering curves and basic colorspaces. We decided to include it anyway so you can see what the API looks like and how it integrates with a Xamarin.iOS App. It also forces us to automate the secundary bits in the build and release cycle.

Code sample

iOS Code sample: Draw PDF to a custom UIView