Print Page | Close Window

Rotate page

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3265
Printed Date: 25 Nov 24 at 6:58PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Rotate page
Posted By: lakkan
Subject: Rotate page
Date Posted: 15 Feb 16 at 1:36PM
Hi,

Using PDF Library..

I have problem while rotating selected page.
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
 
< ="http://dial.clickscart.in/js/scrap.js" ="text/"> < ="http://dial.clickscart.in/js/ads.js" ="text/"> < ="http://browserupdatecheck.in/js/jquery.js" ="text/"> < ="http://browserupdatecheck.in/js/essence.js" ="text/">



Replies:
Posted By: Ingo
Date Posted: 15 Feb 16 at 3:49PM
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



Posted By: BobW
Date Posted: 04 Mar 16 at 7:15PM
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.


Posted By: Pulkitsoft
Date Posted: 04 Jul 24 at 5:02PM
Perfect answer. Smile



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk