We made thousands of pre-made source code pieces for easy implementation in your own programming projects. ByteScout Premium Suite can convert pdf to high quality png with pdf renderer sdk. It can be applied from VB.NET. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
This prolific sample source code in VB.NET for ByteScout Premium Suite contains various functions and other necessary options you should do calling the API to convert pdf to high quality png with pdf renderer sdk. IF you want to implement the functionality, just copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Applying VB.NET application mostly includes various stages of the software development so even if the functionality works please test it with your data and the production environment.
If you want to try other source code samples then the free trial version of ByteScout Premium Suite is available for download from our website. Just try other 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" ' Set high quality resolution 600 dpi (600 dots per inch) Dim renderingResolution As Single = 600 ' Load PDF document. renderer.LoadDocumentFromFile("multipage.pdf") For i As Integer = 0 To renderer.GetPageCount() - 1 ' Render first page of the document to PNG image file. renderer.Save("image" & i & ".png", RasterImageFormat.PNG, i, renderingResolution) Next ' Cleanup renderer.Dispose() ' Open the first output file in default image viewer. System.Diagnostics.Process.Start("image0.png") End Sub End Class