This sample source code below will demonstrate you how to convert PDF to BMP in VB.NET. What is ByteScout PDF Renderer SDK? It is the SDK for rendering of PDF into thumbnails and images in high quality. Provides various functions like batch processing, PNG, TIFF output. Can be used from web and desktop applications. It can help you to convert PDF to BMP in your VB.NET application.
This rich sample source code in VB.NET for ByteScout PDF Renderer SDK includes the number of functions and options you should do calling the API to convert PDF to BMP. In order to implement the functionality, you should copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Detailed tutorials and documentation are available along with installed ByteScout PDF Renderer SDK if you’d like to dive deeper into the topic and the details of the API.
You can download free trial version of ByteScout PDF Renderer SDK from our website to see and try many others source code samples for VB.NET.
Imports Bytescout.PDFRenderer Class Program Friend Shared Sub Main(args As String()) ' Create an instance of Bytescout.PDFRenderer.RasterRenderer object and register it. Dim renderer As New RasterRenderer() renderer.RegistrationName = "demo" renderer.RegistrationKey = "demo" ' Load PDF document. renderer.LoadDocumentFromFile("multipage.pdf") For i As Integer = 0 To renderer.GetPageCount() - 1 ' Render first page of the document to BMP image file. renderer.Save("image" & i & ".bmp", RasterImageFormat.BMP, 0, 300) Next ' Cleanup renderer.Dispose() ' Open the first output file in default image viewer. System.Diagnostics.Process.Start("image0.bmp") End Sub End Class