Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

Portrait page vertically scrollable 7 years 3 months ago #11621

  • DFeaux
  • DFeaux's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 7 years 3 months ago #11622

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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 7 years 3 months ago #11623

  • DFeaux
  • DFeaux's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 7 years 3 months ago #11624

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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 7 years 3 months ago #11625

  • DFeaux
  • DFeaux's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 7 years 3 months ago #11626

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
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