This sample source code below will demonstrate you how to rotate PDF document in VBScript. ByteScout PDF Extractor SDK is the SDK is designed to help developers with pdf tables and pdf data extraction from unstructured documents like pdf, tiff, scans, images, scanned and electronic forms. The library is powered by OCR, computer vision and AI to provide unique functionality like table detection, automatic table structure extraction, data restoration, data restructuring and reconstruction. Supports PDF, TIFF, PNG, JPG images as input and can output CSV, XML, JSON formatted data. Includes full set of utilities like pdf splitter, pdf merger, searchable pdf maker and other utilities. It can be used to rotate PDF document using VBScript.
You will save a lot of time on writing and testing code as you may just take the VBScript code from ByteScout PDF Extractor SDK for rotate PDF document below and use it in your application. This VBScript sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! You can use these VBScript sample examples in one or many applications.
Our website provides trial version of ByteScout PDF Extractor SDK for free. It also includes documentation and source code samples.
' Create Bytescout.PDFExtractor.DocumentRotator object Set rotator = CreateObject("Bytescout.PDFExtractor.DocumentRotator") rotator.RegistrationName = "demo" rotator.RegistrationKey = "demo" rotator.Rotate "..\..\sample1.pdf", "result.pdf", 0 ' 0 - rotate 90 deg, 1 - rotate 180 deg, 2 - rotate 270 deg Set rotator = Nothing WScript.Echo "Rotated document saved as 'result.pdf' file."