ByteScout PDF Renderer SDK - VBScript and VB6 - Convert PDF To PNG - ByteScout

ByteScout PDF Renderer SDK – VBScript and VB6 – Convert PDF To PNG

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Renderer SDK – VBScript and VB6 – Convert PDF To PNG

How to convert PDF to PNG in VBScript and VB6 using ByteScout PDF Renderer SDK

The tutorial shows how to convert PDF to PNG in VBScript and VB6

The sample source code below will teach you how to convert PDF to PNG in VBScript and VB6. ByteScout PDF Renderer SDK: 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. It can convert PDF to PNG in VBScript and VB6.

You will save a lot of time on writing and testing code as you may just take the VBScript and VB6 code from ByteScout PDF Renderer SDK for convert PDF to PNG below and use it in your application. Just copy and paste the code into your VBScript and VB6 application’s code and follow the instruction. 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.

Download free trial version of ByteScout PDF Renderer SDK from our website with this and other source code samples for VBScript and VB6.

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

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

PDFToPNG.vbs
      
' Create Bytescout.PDFRenderer.RasterRenderer object Set renderer = CreateObject("Bytescout.PDFRenderer.RasterRenderer") renderer.RegistrationName = "demo" renderer.RegistrationKey = "demo" ' Load sample PDF document renderer.LoadDocumentFromFile "../../multipage.pdf" ' Render PDF document at 96 DPI - default PC display resolution ' To get higher quality output, set 200, 300 or more Dim renderingResolution renderingResolution = 96 ' Image format: 0 - BMP; 1 - JPEG; 2 - PNG; 3 - TIFF; 4 - GIF Dim outputImageFormat outputImageFormat = 2 ' Iterate through pages For pageIndex = 0 To renderer.GetPageCount() - 1 ' Render document page to PNG image file renderer.Save "page" & CStr(pageIndex) & ".png", outputImageFormat, pageIndex, renderingResolution Next

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