Save time on writing and testing code by using the code below and use it in your application. If you want to know how it works, then this VBScript sample code should be copied and pasted into your application’s code editor. Then just compile and run it. VBScript application implementation mostly involves various stages of the software development so even if the functionality works please check it with your data and the production environment.
ByteScout PDF Suite is available as a free trial. You may get it from our website along with all other source code samples for VBScript applications.
' 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 ' Generate 800x600 px multipage TIFF renderer.SaveMultipageTiff_4 "result.tif", 0, -1, 600, 800, (renderingOptions)