Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Here you should submit your bug reports with logcat.
  • Page:
  • 1
  • 2

TOPIC:

Incorrect page number on small page movement 11 years 4 months ago #870

  • Rignanese
  • Rignanese's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
Hi,
I'm testing the sample provided with the sdk (PDFViewSingle).
I'm using a simple pdf with more than one page.
On
onDraw
I had this simple code
canvas.drawText( "PNo:"+m_viewer.viewGetCurPageNo(), 50, 120, paint);

If you move the page from right to left, you go to the next page.
If you move the page from left to right, you go to the previous page.
If you move the page a little from left to right, the page bounces and you remain in the same page.
If you move the page about 1mm from left to right:
  • you remain in the same page
  • the page doesn't bounces
I'm going to purchase this sdk, I've found it great...but this issue is rather important for my application.
Could you please confirm if this will be resolved soon?
Regards

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

Incorrect page number on small page movement 11 years 4 months ago #871

  • Rignanese
  • Rignanese's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
I don't know if this could help you, but I've found this issue also in the "Radaee PDF Reader" on the Play Store
Regards

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

Incorrect page number on small page movement 11 years 4 months ago #872

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
this method has some extra correct to get page NO.
when 3/4 page area out of view, page NO will increase by 1.
you can modify codes in pdfex package, when you get a profession license.

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

Incorrect page number on small page movement 11 years 4 months ago #873

  • Rignanese
  • Rignanese's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
Hi,
thanks for your response.
The problem isn't when the page is on 3/4...I do not think I explained myself.
Here is a video showing an example using Radaee PDF from the play store.

I hope this can help explain better myself.
Thanks

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

Incorrect page number on small page movement 11 years 4 months ago #875

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
sorry, i reply you wrong information.
for page NO.
in current codes like this:
	public int viewGetCurPageNo()
	{
		return m_page_no;
	}
and you may need change to this:
	public int viewGetCurPageNo()
	{
		if( m_doc == null || m_page_cur == null ) return -1;
		if( m_page_cur.m_dib_w - m_vx > m_win_cx/4 )
			return m_page_no;
		else
			return m_page_no + 1;
	}
m_page_cur.m_dib_w is the width of current page.
m_win_cx is width of view window.
for this, you may need modify codes by yourself, after you paid for profession license.

here is a testing project for you:
www.radaee.com/files/PDFReader.rar
The following user(s) said Thank You: Asal

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

Incorrect page number on small page movement 11 years 4 months ago #877

  • Rignanese
  • Rignanese's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 17
  • Thank you received: 0
Ok, it solves my problem...the problem during zooming like the video I've posted persist...are you considering solve it in the future?
Thanks for your help.
regards

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum