Copy link to clipboard
Copied
hello
we scan plans, about 300, i would rotate all files in a folder via a vb.net program.
Sub Drehunng(inRichtung As String, inPDF As System.IO.FileInfo)
Dim PDFout1 As New Acrobat.AcroPDDoc
Dim Seite As Acrobat.AcroPDPage
PDFout1.Open(inPDF.FullName)
For i As Long = 0 To PDFout1.GetNumPages - 1
Seite = PDFout1.AcquirePage(i)
Select Case inRichtung
Case "n"
Seite.SetRotate(0)
Case "l"
Seite.SetRotate(270)
Case "r"
Seite.SetRotate(90)
Case "k"
Seite.SetRotate(180)
End Select
Next
PDFout1.Save(1, inPDF.FullName)
PDFout1.Close()
gApp.CloseAllDocs()
End Sub
it rotates but only from the orginal scanned pdf direction and not from the direction whitch is actually saved.
How can we rotate from the actually saved direction and not from the orginal scanned pdf direction?
Copy link to clipboard
Copied
You should not just use SetRotate but you should factor in the original rotation via GetRotate. Even pages which seem upright may have a rotation value.