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.

2013-08-12

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

<phone:PhoneApplicationPage
    x:Class="WindowsPhoneAppSample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

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

        <!--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" />
        </StackPanel>

        <!--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"/>
        </Grid>       
    </Grid>
</phone:PhoneApplicationPage>


2) PDF to image rendering code (C#)

    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

        /// <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.

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

PDF to image for Windows Store applications (Windows 8, WinRT, .NET & C#)

     Our version of Apitron PDF Rasterizer for Windows 8 and WinRT is out, and now available for download, it's included in regular download package v.3.0.4(get it here) and corresponding dll can be found in Microsoft WinRT subfolder. Create you apps targeting Windows Store without any limitations, including Windows RT, using our native, 100% .NET solution.

Picture is worth a thousand words, see the screenshot of a running sample included with the package:

sample application(see WindowsStoreAppSample included with package)
                                                       
The sample is very simple and has lots in common with other  samples we already posted here or included with the product package, but there are a few things I'd like to highlight.

1) here is XAML code that main page uses

<Page x:Class="WindowsStoreAppSample.MainPage"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:local="using:WindowsStoreAppSample"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
   <Image x:Name="myImage" HorizontalAlignment="Left" Height="717" Margin="33,24,0,0" VerticalAlignment="Top" Width="567"/>
        <Button x:Name="btnExit" Content="Exit" HorizontalAlignment="Left" Margin="812,232,0,0" VerticalAlignment="Top" Click="btnExit_Click" RenderTransformOrigin="0.787,9.187" Width="82"/>
        <Button x:Name="btnRender" Content="Render" HorizontalAlignment="Left" Margin="812,163,0,0" VerticalAlignment="Top" Click="btnRender_Click"/>
    </Grid>
</Page>

only 2 butons and an image control

2) How the rendering works

/// <summary>
/// Handles rendering button click event
/// </summary>
private async void btnRender_Click(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;               
    }
}

The code looks similar to previously posted samples, the only differences are that we used the file from application Assets folder(but you may use other available locations),
and WritableBitmap class is used here instead of System.Drawing.Bitmap that doesn't exist for .NET applications targeting Windows Store.