ByteScout PDF Renderer SDK - VB.NET - Convert PDF To 1-bit BMP - ByteScout

ByteScout PDF Renderer SDK – VB.NET – Convert PDF To 1-bit BMP

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Renderer SDK – VB.NET – Convert PDF To 1-bit BMP

How to convert PDF to 1 bit BMP in VB.NET using ByteScout PDF Renderer SDK

Write code in VB.NET to convert PDF to 1 bit BMP with this step-by-step tutorial

This sample source code below will demonstrate you how to convert PDF to 1 bit BMP in VB.NET. What is ByteScout PDF Renderer SDK? It is the library that renders PDF into high quality images and thumbnails. Includes various functions like batch processing, PNG, TIFF output. Can be used from web and desktop applications. It can help you to convert PDF to 1 bit BMP in your VB.NET application.

This code snippet below for ByteScout PDF Renderer SDK works best when you need to quickly convert PDF to 1 bit BMP in your VB.NET application. 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. Enjoy writing a code with ready-to-use sample codes in VB.NET.

ByteScout PDF Renderer SDK free trial version is available on our website. VB.NET and other programming languages are supported.

Try ByteScout PDF Renderer SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

Program.vb
      
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") Dim renderingOptions As New RenderingOptions() ' Set pixel format to 1-bit renderingOptions.ImageBitsPerPixel = ImageBitsPerPixel.BPP1 For i As Integer = 0 To renderer.GetPageCount() - 1 ' Save 1-bit image to file renderer.Save("image" & i & ".bmp", RasterImageFormat.BMP, i, 200, renderingOptions) Next ' Cleanup renderer.Dispose() ' Open the first output file in default image viewer. System.Diagnostics.Process.Start("image0.bmp") End Sub End Class

Try ByteScout PDF Renderer SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

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

Explore ByteScout PDF Renderer SDK Documentation

Get ByteScout PDF Renderer SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next