Link Search Menu Expand Document

Rotate PDF Document - VBScript

PDF Extractor SDK sample in VBScript demonstrating ‘Rotate PDF Document’

RotateDocument.vbs
' 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."

Download Source Code (.zip)

Return to the previous page Explore PDF Extractor SDK