ByteScout PDF Renderer SDK - VB.NET - Convert PDF To BMP (using Streams) - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout PDF Renderer SDK – VB.NET – Convert PDF To BMP (using Streams)

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Renderer SDK – VB.NET – Convert PDF To BMP (using Streams)

How to convert PDF to BMP (using streams) in VB.NET with ByteScout PDF Renderer SDK

The tutorial below will demonstrate how to convert PDF to BMP (using streams) in VB.NET

The coding tutorials are designed to help you test the features without need to write your own code. Want to convert PDF to BMP (using streams) in your VB.NET app? ByteScout PDF Renderer SDK is designed for it. ByteScout PDF Renderer SDK is the SDK for rendering of PDF into high-quality thumbnails and images. Includes various functions like batch processing, PNG, TIFF output. Can be used from web and desktop applications.

This code snippet below for ByteScout PDF Renderer SDK works best when you need to quickly convert PDF to BMP (using streams) in your VB.NET application. Just copy and paste the code into your VB.NET application’s code and follow the instruction. Implementing VB.NET application typically includes multiple stages of the software development so even if the functionality works please test it with your data and the production environment.

Trial version of ByteScout PDF Renderer SDK can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.vb
      
Imports Bytescout.PDFRenderer Imports System.IO Class Program Friend Shared Sub Main(args As String()) Dim srcStream = New FileStream("multipage.pdf", FileMode.Open) ' Create an instance of Bytescout.PDFRenderer.RasterRenderer object and register it. Using renderer = New RasterRenderer("demo", "demo") ' Load PDF document. renderer.LoadDocumentFromStream(srcStream) For i As Integer = 0 To renderer.GetPageCount() - 1 Dim fileName As String = "page" & i & ".png" If File.Exists(fileName) Then File.Delete(fileName) ' Render first page of the document to PNG image file. Using destStream As New FileStream(fileName, FileMode.CreateNew) renderer.Save(destStream, RasterImageFormat.PNG, i, 300) End Using Next End Using ' Open the first output file in default image viewer. System.Diagnostics.Process.Start("page0.png") End Sub End Class

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Renderer SDK Home Page

Explore ByteScout PDF Renderer SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Renderer SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Renderer SDK Home Page

Explore ByteScout PDF Renderer SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Renderer SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next