ByteScout PDF Extractor SDK – VBScript and VB6 – Rotate Document

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – VBScript and VB6 – Rotate Document

ByteScout PDF Extractor SDK – VBScript and VB6 – Rotate 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."

  Click here to get your Free Trial version of the SDK

prev
next