RadaeePDF.com :: Topic: Displaying pdf one page at a time on Android (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Displaying pdf one page at a time on Android

Displaying pdf one page at a time on Android 3 years 4 months ago #6557

  • exit_music
  • exit_music's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
I would like to know if there is a way to display a pdf one page at a time (similarly to the PDFViewDual, except that two pages are not stuck together). Can I use the PDFViewDual class but somehow only show 1 page? I have tried the PDFViewHorz class, but this seems to stitch all the pages together without a gap between them. I have also tried the base PDFView class, but this just does not seem to show anything (maybe there is a method I need to call with this class?)

Any help here would be greatly appreciated
The administrator has disabled public write access.

Displaying pdf one page at a time on Android 3 years 4 months ago #6562

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 709
  • Thank you received: 49
  • Karma: 18
You can achieve this by setting def_view = 3 in Global.default_config...

in this mode, the PDFViewDual is modified as:
PDFViewDual view = new PDFViewDual(this.getContext());
boolean paras[] = new boolean[m_doc.GetPageCount()];
int cur = 0;
while( cur < paras.length ) {
      paras[cur] = false;
      cur++;
}
view.vSetLayoutPara(null, paras, m_rtol);
The administrator has disabled public write access.
The following user(s) said Thank You: liyanli

Displaying pdf one page at a time on Android 3 years 4 months ago #6563

  • exit_music
  • exit_music's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
I no idea whats going on with this code, but it did seem to work
The administrator has disabled public write access.
Powered by Kunena Forum