- Posts: 100
- Thank you received: 0
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
- asliyanage
- Topic Author
- Offline
- Premium Member
-
Less
More
IP: 192.168.0.71
11 years 3 months ago #8180
by asliyanage
How identify that i reached to margin was created by asliyanage
I need to identify that when i am scrolling zoomed pdf i reached to the margin(left or right)?
IP: 192.168.0.71
11 years 3 months ago #8183
by radaee
Replied by radaee on topic How identify that i reached to margin
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;
}
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;
}
- asliyanage
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 100
- Thank you received: 0
IP: 192.168.0.71
11 years 2 months ago - 11 years 2 months ago #8202
by asliyanage
Replied by asliyanage on topic How identify that i reached to margin
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
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.
- asliyanage
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 100
- Thank you received: 0
IP: 192.168.0.71
11 years 2 months ago - 11 years 2 months ago #8204
by asliyanage
Replied by asliyanage on topic How identify that i reached to margin
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 ?
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.
IP: 192.168.0.71
11 years 1 month ago #8366
by alex.temp
Replied by alex.temp on topic How identify that i reached to margin
same here...any solution?
IP: 192.168.0.71
11 years 1 month ago #8367
by radaee
Replied by radaee on topic How identify that i reached to margin
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
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