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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 PDF rotate
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

gorati

Hungary
1 Posts

Posted - Jul 20 2023 :  08:47:46  Show Profile  Reply
Hi,

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

Thanks!

xequte

38616 Posts

Posted - Jul 20 2023 :  23:17:35  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: