Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

How identify that i reached to margin

More
IP: 192.168.0.71 11 years 3 months ago #8180 by asliyanage
I need to identify that when i am scrolling zoomed pdf i reached to the margin(left or right)?
More
IP: 192.168.0.71 11 years 3 months ago #8183 by radaee
left edge:
PDFView.vGetX() == 0
right edge:
PDFView.vGetX() + PDFView.vGetWinW() >= PDFView.vGetDocW()

but there are no PDFView.vGetDocW() method.
so, if u has professional license and got java source codes,
just add these 2 methods to PDFView class:
public final int vGetDocW()
{
return m_docw;
}
public final int vGetDocH()
{
return m_doch;
}
More
IP: 192.168.0.71 11 years 2 months ago - 11 years 2 months ago #8202 by asliyanage
Now i am able to find left edge using PDFView.vGetX() == 0 .
but i am unable to find PDFView.vGetDocW().When i try to use it,it gives me below .
The method vGetDocW() is undefined for the type PDFView
Last edit: 11 years 2 months ago by Docrishav.
More
IP: 192.168.0.71 11 years 2 months ago - 11 years 2 months ago #8204 by asliyanage
Hi Radaee,
Please help me.Since i have standard license,I am unable to find any method names vGetDocW().So is there a way to find a right edge or document width?I need to identify right edge and go to next page when it comes to right ?
Last edit: 11 years 2 months ago by Docrishav.
More
IP: 192.168.0.71 11 years 1 month ago #8366 by alex.temp
same here...any solution?
More
IP: 192.168.0.71 11 years 1 month ago #8367 by radaee
PDFView class has following members:
public final int vGetX()
{
return m_scroller.getCurrX();
}
public final int vGetY()
{
return m_scroller.getCurrY();
}
public final int vGetWinW()
{
return m_w;
}
public final int vGetWinH()
{
return m_h;
}
public final int vGetDocW()
{
return m_docw;
}
public final int vGetDocH()
{
return m_doch;
}

PDFView class used in PDFReader class, so u can check coordinate in PDFReader class
Time to create page: 0.466 seconds
Powered by Kunena Forum