RadaeePDF.com :: Topic: Portrait page vertically scrollable (1/3)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Portrait page vertically scrollable

Portrait page vertically scrollable 4 months 17 hours ago #11621

  • DFeaux
  • DFeaux's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
Hello,

I implemented the radaeepdf reader to read a pdf file. I'm having an issue with a Nexus 9 tablet in portrait.
When i put my device in portrait I only see 9/10 of the page. To see the bottom of the page I have to scroll down.
I can't zoom out to show the full page. Any help on this?

Thanks in advance!
The administrator has disabled public write access.

Portrait page vertically scrollable 4 months 16 hours ago #11622

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 588
  • Thank you received: 26
  • Karma: 18
This is the default behavior of the vertical mode (to fit according to screen width).

To change this behavior, you need to change PDFLayoutVert.vLayout:
  • To fit according to screen height->
    m_scale_min = (m_h - m_page_gap) / m_page_maxh;
  • To make it dynamic, i.e. according to screen ->
    m_scale_min = (m_w - m_page_gap) / m_page_maxw;
    float scale = (m_h - m_page_gap) / m_page_maxh;
    if( m_scale_min > scale ) m_scale_min = scale;
The administrator has disabled public write access.

Portrait page vertically scrollable 4 months 2 minutes ago #11623

  • DFeaux
  • DFeaux's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
Thanks for your quick answer. I'm using the PdfViewDual and not vert because I need the user to scroll from page to page horizontally even if he's using it in portrait. I'll look in to that, at least I know where to look now :)

Thanks!
The administrator has disabled public write access.

Portrait page vertically scrollable 3 months 4 weeks ago #11624

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 588
  • Thank you received: 26
  • Karma: 18
Then you should check PDFViewDual.vLayout.

It should be handled by default, Are you facing this with all PDFs?
The administrator has disabled public write access.

Portrait page vertically scrollable 3 months 4 weeks ago #11625

  • DFeaux
  • DFeaux's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
I'm using an old version of the SDK, maybe that's the problem?
Yes I'm having this with every PDF.
The administrator has disabled public write access.

Portrait page vertically scrollable 3 months 4 weeks ago #11626

  • support
  • support's Avatar
  • OFFLINE
  • Administrator
  • Posts: 461
  • Thank you received: 34
  • Karma: 6
May you provide the page format of your pdf file?
Are A4/Letter in portrait or are them different?
The administrator has disabled public write access.
Powered by Kunena Forum