ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 PDF rotate

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
gorati Posted - Jul 20 2023 : 08:47:46
Hi,

Please help me: how do I rotate a PDF page (or pages) with ImageEn in Delphi?

Thanks!
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 20 2023 : 23:17:35
Hi

Do you mean you have a PDF file, you want to open it, rotate all pages and then save it again to file?

You can use:

// Rotate the entire document
ImageEnView1.LockUpdate();
ImageEnView1.IO.LoadFromFile( 'D:\in.pdf' );
for i := 0 to ImageEnView1.PdfViewer.PageCount -1 do
  ImageEnView1.PdfViewer.PageRotation[ i ] := iepr90Clockwise;
ImageEnView1.IO.SaveToFile( 'D:\out.pdf' );
ImageEnView1.UnlockUpdate();


Nigel
Xequte Software
www.imageen.com