pdf links

PDF Rendering
Convert PDF to Image (.NET)
Convert PDF to image on Android (Xamarin)
Convert PDF to image on iOS (Xamarin)
Convert PDF to image in Windows Store apps (.NET)
Convert PDF to image in Windows Phone apps (.NET)
PDF to image in Universal Windows Store apps (.NET)
Free PDF Viewer control for Windows Forms (.NET)
How to integrate PDF Viewer control in WPF app (.NET)
Creating WPF PDF Viewer supporting bookmarks (.NET)
Cross-platform PDF Viewer using GTK# (MONO)
Silverlight PDF viewer control (Silverlight 5)
Multithreaded PDF rendering (.NET)
Convert pdf to image in Silverlight app (C# sample)
How to set fallback fonts for PDF rendering (C#)
Avoiding the out-of-memory exception on rendering (C#)
PDF viewer single page application (WebAPI, AngularJS)
PDF viewer control for Windows 10 universal applications
Use custom ICC profile for CMYK to RGB conversion
PDF layers - separate images, text, annotations, graphics

PDF Forms Creation PDF Security
Conversion to PDF/A
Other topics
PDF Document Manipulation
PDF Content Generation
Fixed and Flow layout document API (.NET)
Creation of grids and tables in PDF (C# sample)
How to create interactive documents using Actions (C# sample)
Text flow effects in PDF (C# sample)
How to generate ordered and bulleted lists in PDF (C# sample)
Convert HTML to PDF using flow layout API (C# sample)
How to use custom fonts for PDF generation (.NET)
Create document with differently sized pages (C#)
Create PDF documents using MONO (C#/MONO/Windows/OSX)
How to use background images for content elements (C#/PDF Kit/FlowLayout)
Add transparent images to PDF document (C#)
Draw round rect borders in PDF documents(C#)
ICC color profiles and and ICC based colors in PDF (C#)
How to use bidirectional and right to left text in PDF (C#)
Create PDF documents from XML templates (C# sample)
How to resize PDF pages and use custom stamps (C#)
Add header and footer to PDF page (.NET sample)
How to use clipping mask for drawing on PDF page
Fill graphics path with gradient brushes in PDF (Shadings)
Apitron PDF Kit and Rasterizer engine settings
Add layers to PDF page (optional content, C# sample)
How to create free text annotation with custom appearance

PDF Content Extraction
PDF Navigation

PDF to TIFF conversion
Contact us if you have a PDF related question and we'll cover it in our blog.


Free .NET PDF Viewer control for Windows Forms developers

The New Year is coming and Apitron has a present for you.

If you were looking for a .NET PDF viewer control then your search is now over, we released our Apitron PDF Controls suite and it includes everything you need to get PDF file displayed in Windows Forms application. Use any .NET language: C#, VB.NET etc and get this task done.
And it’s FREE.

It fully integrates with Apitron.PDF.Rasterizer and is compatible with its document and navigation API. Has complete integration with Visual Studio design-time environment and high quality PDF rendering.

See screenshots below demonstrating design-time and run-time aspects of the Apitron PDF Viewer control (sample code can be found in download package).

Visual Studio design-time integration

Running app with Apitron PDF Viewer control


The control now features text search support

PDF text search in action

Please note that Apitron PDF Viewer control is a free add-on to Apitron PDF Rasterizer for .NET which is used as a rendering engine. It has free support and free upgrades. Feel free to ask questions and contact our support with your requests, as always, we’ll be happy to help. 

Convert Images to PDF using Apitron Image 2 PDF for .NET (C# sample included)

Turn images to PDF with our new product Apitron Image 2 PDF for .NET   a .NET component that allows you to convert a set of images into a PDF file. It can be used to create booklets, combine scanned documents or pack slides into single PDF document and other similar tasks.


Simple and functional API carefully designed to be intuitive and clear. Here I’m going to show some code so you’ll be able to see its basics.

So the task is to convert a set of images from some folder  to  a PDF document and the solution is below.

using System.IO;
using Apitron.Image2Pdf;

internal class Program
    private static void Main(string[] args)
        // open and load image files
        string[] images = Directory.GetFiles(@"..\..\..\Documents\");

        // this object represents a PDF document
        Document document = new Document();

        // intialize settings object
        PageSettings settings = new PageSettings();
        settings.ScaleMode = ImageScaleMode.PreserveAspectRatio;
        settings.KeepImageOrientation = true;

        // process and save images to PDF one by one
        foreach (string image in images)
            document.AddImage(image, settings);


        // preview PDF document

As you may see it doesn’t take much, but generates a readable PDF document with pages created from corresponding images. Things like page size, orientation, scaling, autosizing can be controlled using conversion settings. Image below demonstrates the result produced using the sample included in download package.

Produced PDF file

As usual your feedback is welcome, share your thoughts or impovement ideas and get a personal discount for the product.


Apitron PDF Viewer, version 2.0 is out

We've updated our free PDF viewer for Windows Phone 8, version 2.0 is out and includes significant updates that were introduced with version 3.0.8 of its base - Apitron PDF Rasterizer for .NET. The viewer application can be downloaded from Windows Phone Store.

A few screenshots of the actual application:

Hope you'll like it, thanks for all your comments and feedback that helped us a lot. If have any concerns or thoughts regarding the app or other products just let us know.

We decided to push our pdf viewer further, by introducing new exciting features and after a hard discussion whether it should still be free we set the small fee for it.

The latest PDF viewer version is now 3.5 and it supports text search in PDF files and navigation between found results. Latest version also features MS OneDrive (SkyDrive) integration and allows you to easily work with all you documents in the cloud. Many other small improvements were introduced e.g. extended color modes and bluetooth file sharing.


Apitron PDF Rasterizer, new release

Apitron PDF Rasterizer for .NET 3.0.8 has been released and is now available for downloading. New version includes significant updates and improvements related to memory usage and speed. More is coming soon.


Apitron PDF Rasterizer is published in Xamarin Components Store

    Are you developing with Xamarin? Probably you have already read our posts describing how to use Apitron PDF Rasterizer for .NET with Xamarin and get your PDF files converted to images on Android and iOS using C#.
    We have gone further and published our component in Xamarin Component Store, so you may download and purchase it from there. Check it out https://components.xamarin.com/view/apitron-pdf-rasterizer/   


PDF viewer sample, free WPF application with bookmarks support

     In Apitron PDF Rasterizer for .NET 3.5.0 we’ve added support for bookmarks that many documents contain to simplify navigation. Using classes from  Apitron.PDF.Rasterizer.Navigation namespace you may easily find and render pages linked by bookmarks.

    To show this functionality in action and to help you get familiar with it, we have created a sample C# WPF application that demonstrates usage patterns and provides you with code snippets which you may use in your own applications. It also can be a good base for your custom viewer if you wish to create one, showing yet another way to convert pdf file to images.

    Download component package, unzip it, and open the \Samples\WpfPdfViewer folder. You are ready to check the app out. Open the sample project, run it and select the file to open(File->Open).
The sources are also available at codeplex.

Here are a few screenshots of the actual app (with PDF specification loaded):

Pic.1 Folded bookmarks tree

Pic.2 Unfolded bookmarks tree
You can navigate either by using Pages tab or Bookmarks tab, zoom in and out, scroll etc.

The code 

    In order to get WPF  databinding working with our Document class, we wrapped it with a custom view model implementing INotifyPropertyChanged interface. See DocumentViewModel class in our sample. 

    Access to document bookmarks is provided by Document.Bookmarks property, while navigation through the document has been implemented using DocumentNavigator class.

You may use DocumentNavigator class as follows:

      1)       go to page referenced by bookmark and render it
/// <summary>
/// Renders the page referenced by bookmark as an <see cref="ImageSource"/>
/// </summary>
/// <param name="bookmark">The bookmark.</param>
/// <returns>Image source that represents current page, otherwise null.</returns>
public ImageSource RenderPageReferencedByBookmark(Bookmark bookmark)
BitmapSource bitmapSource = null;

if ( document.Navigator.GoToBookmark(bookmark) )
Page page = document.Navigator.CurrentPage;

int imageWidth = (int)page.Width;
int imageHeight = (int)page.Height;

byte[] image = page.RenderAsBytes(imageWidth, imageHeight, new RenderingSettings());

bitmapSource = BitmapSource.Create( imageWidth, imageHeight, 72, 72, PixelFormats.Bgr32, null, image, 4 * imageWidth );

return bitmapSource;

      2)       use its MoveForward, MoveBackward, Move, GoToPage and respond to Navigated event

      3)       retrieve its state by checking CurrentPage or CurrentIndex properties

    Another nice thing that you may get out of the sample is a TreeView template that was used for bookmarks tree.

     <TreeView Background="LightGray" Name="Bookmarks" ItemsSource="{Binding Bookmark.Children}" SelectedItemChanged="OnBookmarkSelectionChanged">
                  <HierarchicalDataTemplate ItemsSource="{Binding Children}">
                     <TextBlock Text="{Binding Title}"/>

         If you have any questions or suggestions regarding this or other code samples feel free to contact us or leave a comment here.


Live Windows Phone store pdf reader that you can check out

    Hello, if someone is interested to see our Apitron PDF Rasterizer for .NET in action on their phone, there is an application that you can download from Windows Phone store and try.
    Our custom development team has created a free application called Apitron PDF Viewer which is written in pure C# and uses Apitron PDF Rasterizer as PDF rendering library. Supports reading from SD card, Office hub and password-protected PDFs.

Below are screenshots of its minimalistic and functional interface:

Start screen
In action
Night view

If you have any questions or concerns regarding this app, or any questions regarding our components or services then drop us a letter to support@apitron.com.


Windows Phone support has been added! Convert PDF to image in Windows Phone Store applications with our .NET component.

      Another big release is now available for our users, a version of Apitron PDF Rasterizer for Windows Phone 8.
      It seems that if you have to develop an application for Windows Phone 8 and need PDF to image conversion you are quite limited in this matter.

But we have solved this problem and now you can get it done using Apitron PDF Rasterizer (see http://apitron.com/Downloads ).

We also created a sample for you, and below are  highlights from Windows Phone 8 app showing it in action(complete code sample is included with download package and can be found in Samples\WindowsPhoneAppSample folder):

1) XAML for main page is very simple, we have only title, button, and container image placed on page

    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="10,10,10,10" Orientation="Horizontal">
            <TextBlock Text="PDF to Image sample by Apitron" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0" VerticalAlignment="Center"/>
            <Button x:Name="Render" Click="OnRenderClicked" Content="Render" />

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Image HorizontalAlignment="Stretch"  VerticalAlignment="Stretch" x:Name="myImage"/>

2) PDF to image rendering code (C#)

    public partial class MainPage : PhoneApplicationPage
        // Constructor
        public MainPage()

        /// <summary>
        /// Handles Render button click event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void OnRenderClicked(object sender, RoutedEventArgs e)
            // get the assets folder for the app
            StorageFolder folder = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFolderAsync("Assets");

            // get the file included in app assets
            StorageFile file = await folder.GetFileAsync("3bigpreview.pdf");

            // open the file and render first page
            using (Stream stream = await file.OpenStreamForReadAsync())
                Document doc = new Document(stream);

                Apitron.PDF.Rasterizer.Page page = doc.Pages[0];

                ErrorLogger logger = new ErrorLogger();
                WriteableBitmap bm = page.Render((int) page.Width, (int) page.Height, new RenderingSettings(), logger);               

                myImage.Source = bm;               


3) resulting app, running on a Windows Phone 8 Device, I used our lovely test file here and as you can see it looks the same on as on "big" screens.

Screenshot 2
Screenshot 1

Get the http://apitron.com/Product/pdf-rasterizer and start working with PDF on Windows Phone 8.

The sample assumes that you have the Windows Phone SDK installed,  you may get it here http://dev.windowsphone.com/en-us/downloadsdk