RadaeePDF.com :: Topic: Pages' behavior in landscape mode (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Pages' behavior in landscape mode

Pages' behavior in landscape mode 2 years 3 months ago #8765

  • nfischer
  • nfischer's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi,

I added my own code in OnPDFPageDisplayed in PDFReader.java class. I used what I saw here to know when the page is loaded:
public void OnPDFPageDisplayed(Canvas canvas, PDFVPage vpage)
{
	if( vpage != null )
	{
		Page page = vpage.GetPage();
		if( page != null && vpage.IsFinished() )
		{
			//my code here
           	}
	}
}
Then, the code accesses a static ArrayList, but I wonder what is the behavior in the case of the landscape mode.
When two pages are displayed, do they both call OnPDFPageDisplayed at the same time? That would change the way I manage my static ArrayList.

Thanks in advance.
The administrator has disabled public write access.

Pages' behavior in landscape mode 2 years 2 months ago #8843

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 663
  • Thank you received: 43
  • Karma: 12
Hi,
first of all sorry for the delay.
When you are in landscape mode the OnPDFPageDisplayed is invoked more than once and the pages are displayed in numerical order, so keep account of these aspects when you manage your static ArrayList.
The administrator has disabled public write access.
Powered by Kunena Forum