General discussion

Locked

Use Acrobat SDK to rotate doc's in PDF

By Braakhekke ·
I downloaded the Adobe Acrobat SDK, and got simple functions running using the 4.0 Type Library.
I need to Rotate my document and save it rotated. Therefore I expect to use the command PDPageSetRotate.
Do I need more references? Which objecttype does this method belong to?

I'd love it if you could give me a few lines of code, to learn by example.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Use Acrobat SDK to rotate doc's in PDF

by Braakhekke In reply to Use Acrobat SDK to rotate ...

Point value changed by question poster.

Collapse -

Use Acrobat SDK to rotate doc's in PDF

by Braakhekke In reply to Use Acrobat SDK to rotate ...

Objecttype: CAcroPDPage. Can be found by pressing F2, and doing a search on e.g. Page.

Try this:

Private Sub Form_Load()
Dim AcroApp As CAcroApp
Dim AcroDoc As CAcroPDDoc
Dim AcroPage As CAcroPDPage
Dim fina As String

fina = "c:\test\ajk0.pdf"

Set AcroApp = CreateObject("AcroExch.App")
AcroApp.Show
Set AcroDoc = CreateObject("AcroExch.PDDoc")
AcroDoc.Open fina
Set AcroPage = AcroDoc.AcquirePage(0)
AcroPage.SetRotate 90


AcroDoc.SetInfo "Title", ""
AcroDoc.SetInfo "Author", "Tree C - PDF Convert"

AcroDoc.Save PDSaveFull, fina
AcroApp.Exit

Collapse -

Use Acrobat SDK to rotate doc's in PDF

by Braakhekke In reply to Use Acrobat SDK to rotate ...

Point value changed by question poster.
FREE FOR THE FIRST TO COLLECT!
Any answer accepted (if accompanied by a link to an interesting webpage)

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums