Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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();