<!-- Copyright (c) 2021 ActivePDF, Inc. --> <!-- ActivePDF Rasterizer 2017 --> <!-- Example generated 03/03/21 --> <% Dim strPath strPath = Server.MapPath(".") & "\" ' Instantiate Object Set oRAS = Server.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 Response.Write "Done!" %>