Link Search Menu Expand Document

Override Resolution in Multipage TIFF - VBScript and VB6

PDF Renderer SDK sample in VBScript and VB6 demonstrating ‘Override Resolution in Multipage TIFF’

OverrideResolutionInMultipageTIFF.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"

' 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)


Download Source Code (.zip)

Return to the previous page Explore PDF Renderer SDK