Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Portrait page vertically scrollable

More
9 years 1 month ago #11621 by DFeaux
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!
More
9 years 1 month ago #11622 by nermeen
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->
    Code:
    m_scale_min = (m_h - m_page_gap) / m_page_maxh;
  • To make it dynamic, i.e. according to screen ->
    Code:
    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;
More
9 years 4 weeks ago #11623 by DFeaux
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!
More
9 years 4 weeks ago #11624 by nermeen
Then you should check PDFViewDual.vLayout.

It should be handled by default, Are you facing this with all PDFs?
More
9 years 4 weeks ago #11625 by DFeaux
I'm using an old version of the SDK, maybe that's the problem?
Yes I'm having this with every PDF.
More
9 years 4 weeks ago #11626 by support
May you provide the page format of your pdf file?
Are A4/Letter in portrait or are them different?
Time to create page: 0.556 seconds
Powered by Kunena Forum