onPage display problem with counting pages! - 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...
Here you should submit your bug reports with logcat.

TOPIC: onPage display problem with counting pages!

onPage display problem with counting pages! 6 years 1 month ago #364

  • khaled89
  • khaled89's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Karma: 2
  • Thank you received: 0
when a document is open in the default mode (vertical), it doesn't fill the screen vertically, some of the second page is viewed under the first one, the PDFView considers himself viewing the second page not the first page, so the onPageChanged will be fired once the user goes to the third page and it won't be fired when the user scrolls to the second page because it consider itself that its showing it already.
this makes a problem when you implement a page counter in your application.
P.S : please note that you have this problem in your application : play.google.com/store/apps/details?id=radaee.pdf&hl=en
many thanks

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

onPage display problem with counting pages! 6 years 1 month ago #366

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
we will check this problem for next week.

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

onPage display problem with counting pages! 5 years 11 months ago #893

  • khaled89
  • khaled89's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Karma: 2
  • Thank you received: 0
any updates regarding this problem ?

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

onPage display problem with counting pages! 5 years 11 months ago #894

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
may you test call-back "OnPageDisplayed"?
this call-back should invoked every time, when page displayed.

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

Last edit: by .

onPage display problem with counting pages! 5 years 11 months ago #933

  • khaled89
  • khaled89's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Karma: 2
  • Thank you received: 0
I added a Toast message to this method to show the current page, it keeps showing the toast message, the function onPageDisplayed is being called every second, even if I don't change the page.

whats the problem in that ?

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

onPage display problem with counting pages! 5 years 11 months ago #937

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
yes, it call-back all times for page moving.
to get current page for single page view:
you may check if right side of page is in left half of screen.
and record pageno call-back to you.

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

Last edit: by .
Powered by Kunena Forum