ByteScout PDF Extractor SDK - VBScript - Rotate Document - ByteScout

ByteScout PDF Extractor SDK – VBScript – Rotate Document

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

ByteScout PDF Extractor SDK – VBScript – 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

Tutorials:

prev
next