- Posts: 17
- Thank you received: 0
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
IP: 192.168.0.70
13 years 4 months ago #870
by Rignanese
Incorrect page number on small page movement was created 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
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:
Could you please confirm if this will be resolved soon?
Regards
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
Could you please confirm if this will be resolved soon?
Regards
IP: 192.168.0.70
13 years 4 months ago #871
by Rignanese
Replied by Rignanese on topic Incorrect page number on small page movement
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
Regards
IP: 192.168.0.70
13 years 3 months ago #872
by radaee
Replied by radaee on topic Incorrect page number on small page movement
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.
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.
IP: 192.168.0.70
13 years 3 months ago #873
by Rignanese
Replied by Rignanese on topic Incorrect page number on small page movement
IP: 192.168.0.70
13 years 3 months ago #875
by radaee
Replied by radaee on topic Incorrect page number on small page movement
sorry, i reply you wrong information.
for page NO.
in current codes like this:
and you may need change to this:
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
for page NO.
in current codes like this:
Code:
public int viewGetCurPageNo()
{
return m_page_no;
}
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_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
IP: 192.168.0.70
13 years 3 months ago #877
by Rignanese
Replied by Rignanese on topic Incorrect page number on small page movement
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
Thanks for your help.
regards
Time to create page: 0.462 seconds