Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Here you should submit your bug reports with logcat.

Incorrect page number on small page movement

More
IP: 192.168.0.70 13 years 4 months ago #870 by Rignanese
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
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
More
IP: 192.168.0.70 13 years 4 months ago #871 by Rignanese
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
More
IP: 192.168.0.70 13 years 3 months ago #872 by radaee
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.
More
IP: 192.168.0.70 13 years 3 months ago #873 by Rignanese
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
More
IP: 192.168.0.70 13 years 3 months ago #875 by radaee
sorry, i reply you wrong information.
for page NO.
in current codes like this:
Code:
public int viewGetCurPageNo() { return m_page_no; }
and you may need change to this:
Code:
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
More
IP: 192.168.0.70 13 years 3 months ago #877 by Rignanese
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
Time to create page: 0.462 seconds
Powered by Kunena Forum