Set page number in initialize - 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: Set page number in initialize

Set page number in initialize 3 years 5 months ago #7535

  • shahroodi
  • shahroodi's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi, how to set page number in initialize? I found OnPageChanged(int pageNo) method for changing page number manually, but i wanna show a page except first page. When should i call this method exactly?
I try to call this in onCreate and InitView but that wasn't correct i thought :(
(We have licence)
Last Edit: by Danh.
The topic has been locked.

Set page number in initialize 3 years 5 months ago #7541

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 789
  • Karma: 20
  • Thank you received: 58
You can do it using:
m_reader.PDFOpen(m_doc, false, this);
new Handler().postDelayed(new Runnable() {			
	public void run() {
		m_reader.PDFGotoPage(10);
	}
}, 100);
The following user(s) said Thank You: Danh
The topic has been locked.

Set page number in initialize 3 years 5 months ago #7544

  • shahroodi
  • shahroodi's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Thank u so much. That works fine :)
But a question. If my Pdf volume was great or device cpu was weak this delay must be more than 100!
Is not there a better and stable way?!
The topic has been locked.
  • Page:
  • 1
Powered by Kunena Forum