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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > General Discussion
  New Posts New Posts RSS Feed - Rotate page
  FAQ FAQ  Forum Search   Register Register  Login Login

Rotate page

 Post Reply Post Reply
Author
Message
lakkan View Drop Down
Senior Member
Senior Member


Joined: 10 Dec 15
Location: Bangalore
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote lakkan Quote  Post ReplyReply Direct Link To This Post Topic: Rotate page
    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/">

Edited by lakkan - 15 Feb 16 at 1:38PM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
BobW View Drop Down
Senior Member
Senior Member


Joined: 27 Feb 13
Location: Minnesota
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote BobW Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store