Rasterizer 2017

CreateMultipageTIFF

' Copyright (c) 2020 ActivePDF, Inc.
' ActivePDF Rasterizer 2017
' Example generated 02/18/20 

Dim FSO, strPath

' Get current path
Set FSO = CreateObject("Scripting.FileSystemObject")
strPath = FSO.GetFile(Wscript.ScriptFullName).ParentFolder & "\"
Set FSO = Nothing

' Instantiate Object
Set oRAS = CreateObject("APRasterizer.Object")

' Open PDF
oRAS.OpenFile strPath & "doc.pdf"

' Output Type
' 1 = Stream
' 2 = File
oRAS.OutputFormat = 2

' Set the file path for the created TIFF
oRAS.OutputFileName = strPath & "doc.tiff"

' Set whether to include PDF annotations in the conversion
oRAS.IncludeAnnotations = true

' Set the pages to convert
oRAS.AddPageRange 1, 2
oRAS.AddPageRange 4, 4

' Create the TIFF
oRAS.CreateMultipageTIFF 

' Finished with PDF, close file
oRAS.CloseFile 

' Release Object
Set oRAS = Nothing

' Process Complete
Wscript.Echo("Done!")

Copyright © 2020 ActivePDF, Inc