RadaeePDF.com :: Topic: How to use VSetPos and GoToPage (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: How to use VSetPos and GoToPage

How to use VSetPos and GoToPage 3 years 1 month ago #6466

  • ppanda15
  • ppanda15's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
Hi,

I really new on Android development, and this might be a stupid question. How to use VSetPos? I read in the document and tried to start the document to the specific page and specific position on that page. However, I tried using VSetPos but nothing happened.

Second, about GoToPage, where is the best place should I put it into my code to make the document starts and go to the specific page I want? (now I put it on OnDraw() and add flag to make it be called only one time).

Lastly, how to get the current page, or should I calculate by current position divided by page height?

Thank you in advance for answers. ;)
The administrator has disabled public write access.

How to use VSetPos and GoToPage 3 years 1 month ago #6467

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 659
  • Thank you received: 38
  • Karma: 17
To go to certain position try:
m_reader.vSetScale(m_reader.vGetScale(), x, y);

To open the pdf on a certain page:
m_reader.PDFOpen(m_doc, false, this);
m_reader.PDFGotoPage(10);

to get the current page:
You can get it from OnPageChanged when you implement PDFReaderListener, or you can add a get method in PDFReader for the value of the variable m_pageno
The administrator has disabled public write access.
The following user(s) said Thank You: thuc

How to use VSetPos and GoToPage 3 years 1 month ago #6472

  • ppanda15
  • ppanda15's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
Thank you for your reply, @nermeen. :)
Last Edit: 3 years 1 month ago by thuc.
The administrator has disabled public write access.
Powered by Kunena Forum