RadaeePDF.com :: Topic: How identify that i reached to margin (1/2)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: How identify that i reached to margin

How identify that i reached to margin 2 years 7 months ago #8180

  • asliyanage
  • asliyanage's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 105
  • Karma: 0
I need to identify that when i am scrolling zoomed pdf i reached to the margin(left or right)?
The administrator has disabled public write access.

How identify that i reached to margin 2 years 7 months ago #8183

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

How identify that i reached to margin 2 years 6 months ago #8202

  • asliyanage
  • asliyanage's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 105
  • Karma: 0
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: 2 years 6 months ago by Docrishav.
The administrator has disabled public write access.

How identify that i reached to margin 2 years 6 months ago #8204

  • asliyanage
  • asliyanage's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 105
  • Karma: 0
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: 2 years 6 months ago by Docrishav.
The administrator has disabled public write access.

How identify that i reached to margin 2 years 5 months ago #8366

  • alex.temp
  • alex.temp's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
same here...any solution?
The administrator has disabled public write access.

How identify that i reached to margin 2 years 5 months ago #8367

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