The code below will help you to implement an VBScript and VB6 app to convert PDF to BMP. Want to convert PDF to BMP in your VBScript and VB6 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.
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 BMP below and use it in your application. Follow the instructions from the scratch to work and copy the VBScript and VB6 code. Enjoy writing a code with ready-to-use sample VBScript and VB6 codes.
Trial version of ByteScout PDF Renderer SDK can be downloaded for free from our website. It also includes source code samples for VBScript and VB6 and other programming languages.
' 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 = 0 ' Iterate through pages For i = 0 To renderer.GetPageCount() - 1 ' Rendered page to file renderer.Save "page" & CStr(i) & ".bmp", outputImageFormat, i, renderingResolution Next