Today we will explain the steps and algorithm of implementing override resolution in rendered image and how to make it work in your application. Override resolution in rendered image in VBScript and VB6 can be implemented with ByteScout PDF Renderer SDK. ByteScout PDF Renderer SDK is the component (SDK) that renders PDF into high quality images and thumbnails. Includes various functions like page by page processing, BMP, PNG, TIFF or stream output. Can be used from web and desktop applications.
The SDK samples like this one below explain how to quickly make your application do override resolution in rendered image in VBScript and VB6 with the help of ByteScout PDF Renderer SDK. Follow the instruction from the scratch to work and copy and paste code for VBScript and VB6 into your editor. Test VBScript and VB6 sample code examples whether they respond your needs and requirements for the project.
Our website provides free trial version of ByteScout PDF Renderer SDK. It comes along with all these source code samples with the goal to help you with your VBScript and VB6 application implementation.
' 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" ' Set resolution of rendered images to 300DPI Set renderingOptions = CreateObject("Bytescout.PDFRenderer.RenderingOptions") renderingOptions.ResolutionOverride= 300 ' Iterate through pages For i = 0 To renderer.GetPageCount()-1 ' Generate 800x600 px PNG image renderer.Save_4 "image" & i & ".png", 2, i, 600, 800, (renderingOptions) Next