Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Pages' behavior in landscape mode 9 years 2 weeks ago #8765

  • nfischer
  • nfischer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 8 years 11 months ago #8843

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
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