Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1
  • 2

TOPIC:

Can I fit the view to page on first render? 9 years 1 month ago #8676

  • Gooren
  • Gooren's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
I think you switched view names:D Otherwise it doesn't make sense. Vertical device orientation = PdfViewVert. In this scenario you want to fit page on width and have bars on top and bottom. In horizontal, you want to fit on width so user has to scroll vertically to see the whole page.

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

Can I fit the view to page on first render? 9 years 1 month ago #8677

  • igokul
  • igokul's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Not really. In portrait I need to use both and have a button to switch between them. PDFViewVert is for continuous scrolling up and down (so fit the width) and still in portrait PDFViewHorz is seeing the whole page (fit width) and swiping left and right between pages,

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

Can I fit the view to page on first render? 9 years 1 month ago #8678

  • Gooren
  • Gooren's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
In that case i can't help anymore. You have to ask Radaee. In our scenario we have one page = one pdf file. So we have PdfDocument and PdfView for each page. And we are dynamically loading a closing them as user navigates through the pdf reader. And we are happy with fit to height in horizontal orientation and fit to width in vertical device orientation. Swiping is our implementation. I think you should make a ticket for Radaee instead of merely posting on this forum. Higher chance of help bro.

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

Last edit: by Gooren.

Can I fit the view to page on first render? 9 years 1 month ago #8679

  • coderox
  • coderox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Thanks to Goreen I made I tiny adjustment to the PDFViewVert vLayout method and changed the following line:

m_scale = ((float)(600 - m_page_gap)) / maxw;
to
m_scale = ((float)(m_w - m_page_gap)) / maxw;

That seems to work perfectly for me at least!

Thanks!

Johan Lindfors
// coderox

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

Can I fit the view to page on first render? 9 years 1 month ago #8683

  • Gooren
  • Gooren's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Glad i could help.

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

Can I fit the view to page on first render? 9 years 1 month ago #8685

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Sorry for late reply.

We're working to fix

I've tried to examine the properites available regarding width and height but it puzzles me that these are occassionally zeroed which means they can't be used with confidence.


Soon we should be able to release a new package.
After that we will actively participate within your discussion.

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

Last edit: by support.
  • Page:
  • 1
  • 2
Powered by Kunena Forum