RadaeePDF.com :: Topic: Set page number in initialize (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Set page number in initialize

Set page number in initialize 2 years 9 months ago #7535

  • shahroodi
  • shahroodi's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 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: 2 years 9 months ago by Danh.
The topic has been locked.

Set page number in initialize 2 years 9 months ago #7541

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 659
  • Thank you received: 38
  • Karma: 17
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 topic has been locked.
The following user(s) said Thank You: Danh

Set page number in initialize 2 years 9 months ago #7544

  • shahroodi
  • shahroodi's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 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.
Powered by Kunena Forum