Pages' behavior in landscape mode - 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

TOPIC: Pages' behavior in landscape mode

Pages' behavior in landscape mode 3 years 3 weeks ago #8765

  • nfischer
  • nfischer's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 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.

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

Pages' behavior in landscape mode 3 years 1 day ago #8843

  • Davide
  • Davide's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 778
  • Karma: 16
  • Thank you received: 61
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.

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

  • Page:
  • 1
Powered by Kunena Forum