Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Rotate page |
Post Reply |
Author | |
lakkan
Senior Member Joined: 10 Dec 15 Location: Bangalore Status: Offline Points: 53 |
Post Options
Thanks(0)
Posted: 15 Feb 16 at 1:36PM |
Hi, Using PDF Library.. For first time, PDF page rotates for 90 deg, After that page is not getting rotated further by 90 deg. Here is code: QP.SetOrigin(1); QP.SelectPage(1); if(nRotateType == c_eventRotate90) //Clock wise QP.RotatePage(90); else if(nRotateType == c_eventRotate270) //Anti clockwise QP.RotatePage(270); if((nRotateType == c_eventRotate90) || (nRotateType == c_eventRotate270)) QP.SaveToFile(image_puForeign->acPathTemp); //It saves rotated page.. QP.RenderPageToDC(g_dpdfDPI, g_nCurrentPage,hdc); Please let me know the solution Narayana Reddy.L Edited by lakkan - 15 Feb 16 at 1:38PM |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Lakkan,
"rotate 90" don't rotate the page and save it rotated. "rotate 90" means for the pdf reader that the document shall be displayed with a rotation of 90 degrees. So if you insert a second "rotate 90" nothing more will happen. If you want to add 90 degrees you have to add these 90 to the existing 90 -> "rotate 180". Cheers, Ingo |
|
Cheers,
Ingo |
|
BobW
Senior Member Joined: 27 Feb 13 Location: Minnesota Status: Offline Points: 64 |
Post Options
Thanks(0)
|
If you perform a NormalizePage 0 after the RotatePage, the results will be what you expect. NormalizePage has the effect of saving the new orientation of the page.
|
|
Pulkitsoft
Beginner Joined: 10 Oct 20 Location: New Delhi Status: Offline Points: 16 |
Post Options
Thanks(0)
|
Perfect answer.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store