RadaeePDF.com :: Topic: Incorrect page number on small page movement (1/2)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Here you should submit your bug reports with logcat.
  • Page:
  • 1
  • 2

TOPIC: Incorrect page number on small page movement

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

  • Rignanese
  • Rignanese's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Karma: 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
The administrator has disabled public write access.

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

  • Rignanese
  • Rignanese's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Karma: 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
The administrator has disabled public write access.

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

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
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.
The administrator has disabled public write access.

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

  • Rignanese
  • Rignanese's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Karma: 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.
http://youtu.be/KUAqgHToX6g
I hope this can help explain better myself.
Thanks
The administrator has disabled public write access.

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

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
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:
http://www.radaee.com/files/PDFReader.rar
The administrator has disabled public write access.
The following user(s) said Thank You: Asal

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

  • Rignanese
  • Rignanese's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Karma: 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
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Powered by Kunena Forum