which method for changing page ? - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: which method for changing page ?

which method for changing page ? 5 years 4 months ago #2987

  • truculent
  • truculent's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 64
  • Thank you received: 0
hi
i know method Vgtoto (int page) for changing page!

but i need a method that changing page when changing page with swipe!

anyway i want Lock paging with a button & going to annot mode & in this mode i want to select text & highlight

plase help me

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

which method for changing page ? 5 years 4 months ago #2996

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
just set m_swipe_dx and m_swipe_dy in PDFView class.

swipe to special page like:
PDFVPage vpage = [m_view vGetPage:pageno];
int gotox = [vpage GetX];
int curx = [m_view vGetX];
m_swipe_dx = gotox - curx;
these codes only valid for horizontal layouts.
for vertical layout, you may need calculate y coordinate

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

Last edit: by .
  • Page:
  • 1
Powered by Kunena Forum