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

TOPIC:

Issue with GOTO a specific page functionality 10 years 4 months ago #4769

  • rohitks
  • rohitks's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Case:
- Open a PDF and it's at page number 1 (PDF having large number of pages e.g. 200)
- Goto from page 1 to page 199.
- PDF viewer shows glimpse of all the pages while traversing from 1 to 199.

Expected behaviour would be PDF should jump to the specific page . i.e 199.

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

Issue with GOTO a specific page functionality 10 years 4 months ago #4773

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

in demo version is correct: that animation only center the page, it doesn't show all pages.

to remove that animation you have to edit vGoto method, in PDFView class: remove [m_view vGetDeltaToCenterPage:pos.pageno :&m_swipe_dx :&m_swipe_dy];

With this change you have to center the page by yourself ([m_view vSetPos:&pos :0 :0]; set also the page position, in this case is 0, 0)

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

  • Page:
  • 1
Powered by Kunena Forum