This sample shows how to save a PDF page as image (i.e. how to convert a PDF page to raster format image).

Use PdfPage.Save method with specific PdfDrawOptions. To create PdfDrawOptions use PdfDrawOptions.Create() method. This method will create default options: PNG images with transparent background. Please note that you can fine-tune options after creation.

Saving of PDF as image is not supported in version for .NET Standard.

C#
using System.Diagnostics;

using BitMiracle.Docotic.Pdf;

namespace BitMiracle.Docotic.Pdf.Samples
{
    public static class SavePageAsImage
    {
        public static void Main()
        {
            // NOTE: 
            // When used in trial mode, the library imposes some restrictions.
            // Please visit http://bitmiracle.com/pdf-library/trial-restrictions.aspx
            // for more information.

            string pathToImage = "SavePageAsImage.jpg";

            using (PdfDocument pdf = new PdfDocument(@"Sample Data\jfif3.pdf"))
            {
                PdfDrawOptions options = PdfDrawOptions.Create();
                options.BackgroundColor = new PdfRgbColor(255, 255, 255);
                options.Format = PdfDrawFormat.Jpeg;

                pdf.Pages[1].Save(pathToImage, options);
            }

            Process.Start(pathToImage);
        }
    }
}
VB
Imports System.Diagnostics

Imports BitMiracle.Docotic.Pdf

Namespace BitMiracle.Docotic.Pdf.Samples
    Public NotInheritable Class SavePageAsImage
        Public Shared Sub Main()
            ' NOTE: 
            ' When used in trial mode, the library imposes some restrictions.
            ' Please visit http://bitmiracle.com/pdf-library/trial-restrictions.aspx
            ' for more information.

            Dim pathToImage As String = "SavePageAsImage.jpg"

            Using pdf As New PdfDocument("Sample Data\jfif3.pdf")
                Dim options As PdfDrawOptions = PdfDrawOptions.Create()
                options.BackgroundColor = New PdfRgbColor(255, 255, 255)
                options.Format = PdfDrawFormat.Jpeg

                pdf.Pages(1).Save(pathToImage, options)
            End Using

            Process.Start(pathToImage)
        End Sub
    End Class
End Namespace