Portrait page vertically scrollable - 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

TOPIC: Portrait page vertically scrollable

Portrait page vertically scrollable 1 year 1 month ago #11621

  • DFeaux
  • DFeaux's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 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!

Please Log in or Create an account to join the conversation.

Portrait page vertically scrollable 1 year 1 month ago #11622

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 754
  • Karma: 20
  • Thank you received: 55
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;

Please Log in or Create an account to join the conversation.

Portrait page vertically scrollable 1 year 1 month ago #11623

  • DFeaux
  • DFeaux's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 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!

Please Log in or Create an account to join the conversation.

Portrait page vertically scrollable 1 year 1 month ago #11624

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 754
  • Karma: 20
  • Thank you received: 55
Then you should check PDFViewDual.vLayout.

It should be handled by default, Are you facing this with all PDFs?

Please Log in or Create an account to join the conversation.

Portrait page vertically scrollable 1 year 1 month ago #11625

  • DFeaux
  • DFeaux's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
I'm using an old version of the SDK, maybe that's the problem?
Yes I'm having this with every PDF.

Please Log in or Create an account to join the conversation.

Portrait page vertically scrollable 1 year 1 month ago #11626

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 525
  • Karma: 6
  • Thank you received: 43
May you provide the page format of your pdf file?
Are A4/Letter in portrait or are them different?

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum