• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

how to rotate pdfs via a api

New Here ,
Aug 03, 2018 Aug 03, 2018

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?

TOPICS
Acrobat SDK and JavaScript

Views

465

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 03, 2018 Aug 03, 2018

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines