This sample shows how to save image of a PDF page with specified zoom level.

Use PdfDrawOptions.CreateZoom method to create drawing options. Then pass created options to PdfPage.Save method to save image of a page zoomed to specified level to a stream or a file.

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 DrawZoomedPage
    {
        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 = "DrawZoomedPage.png";

            using (PdfDocument pdf = new PdfDocument(@"Sample Data\jfif3.pdf"))
            {
                PdfDrawOptions options = PdfDrawOptions.CreateZoom(400);
                pdf.Pages[0].Save(pathToImage, options);
            }

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

Imports BitMiracle.Docotic.Pdf

Namespace BitMiracle.Docotic.Pdf.Samples
    Public NotInheritable Class DrawZoomedPage
        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 = "DrawZoomedPage.png"

            Using pdf As New PdfDocument("Sample Data\jfif3.pdf")
                Dim options As PdfDrawOptions = PdfDrawOptions.CreateZoom(400)
                pdf.Pages(0).Save(pathToImage, options)
            End Using

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