How identify that i reached to margin - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: How identify that i reached to margin

How identify that i reached to margin 3 years 10 months ago #8180

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 100
  • Thank you received: 0
I need to identify that when i am scrolling zoomed pdf i reached to the margin(left or right)?

Please Log in or Create an account to join the conversation.

How identify that i reached to margin 3 years 10 months ago #8183

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
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;
}

Please Log in or Create an account to join the conversation.

How identify that i reached to margin 3 years 10 months ago #8202

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 100
  • Thank you received: 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

Please Log in or Create an account to join the conversation.

Last edit: by Docrishav.

How identify that i reached to margin 3 years 10 months ago #8204

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 100
  • Thank you received: 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 ?

Please Log in or Create an account to join the conversation.

Last edit: by Docrishav.

How identify that i reached to margin 3 years 9 months ago #8366

  • alex.temp
  • alex.temp's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
same here...any solution?

Please Log in or Create an account to join the conversation.

How identify that i reached to margin 3 years 9 months ago #8367

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum