Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

SetPageRotate not work? 8 years 8 months ago #11104

  • netmate
  • netmate's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 12
  • Thank you received: 0
I am a problem

Environment :
develop 3.7 lib.
Android Studio

[SetPageRotate] is not working.

my code is blow

m_doc.SetPageRotate(pageno, -degree);
m_view.vSetScale(0, 0, 0);

or

m_doc.SetPageRotate(pageno, degree);


But, go to other page and return original page,

Page is rotated, but page size is wrong.

...
After Rotate Device, Page size is OK

i want to see , After call "SetPageRotate" api,
see the right page size and rotated page

Please Log in or Create an account to join the conversation.

SetPageRotate not work? 8 years 7 months ago #11116

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Hello,

It's only a problem of re-render, the following code is tested and works in the demo project:
m_doc.SetPageRotate(pageno, degree); //m_doc.SetPageRotate(pageno, -degree);
m_view.vRenderSync(m_layout.vGetPage(pageno));
The following user(s) said Thank You: netmate

Please Log in or Create an account to join the conversation.

SetPageRotate not work? 8 years 7 months ago #11120

  • netmate
  • netmate's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 12
  • Thank you received: 0
Thank you. It was resolved.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum