- Posts: 10
- Thank you received: 0
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
9 years 1 month ago #11621
by DFeaux
Portrait page vertically scrollable was created 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!
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!
9 years 1 month ago #11622
by nermeen
Replied by nermeen on topic Portrait page vertically scrollable
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 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;
9 years 4 weeks ago #11623
by DFeaux
Replied by DFeaux on topic Portrait page vertically scrollable
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!
Thanks!
9 years 4 weeks ago #11624
by nermeen
Replied by nermeen on topic Portrait page vertically scrollable
Then you should check PDFViewDual.vLayout.
It should be handled by default, Are you facing this with all PDFs?
It should be handled by default, Are you facing this with all PDFs?
9 years 4 weeks ago #11625
by DFeaux
Replied by DFeaux on topic Portrait page vertically scrollable
I'm using an old version of the SDK, maybe that's the problem?
Yes I'm having this with every PDF.
Yes I'm having this with every PDF.
Time to create page: 0.556 seconds