Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Pages' behavior in landscape mode

More
11 years 5 months ago #8765 by nfischer
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:
Code:
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.
More
11 years 4 months ago #8843 by Davide
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.
Time to create page: 0.387 seconds
Powered by Kunena Forum