Pdf is not fit to height on certain devices. - 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
  • Page:
  • 1

TOPIC: Pdf is not fit to height on certain devices.

Pdf is not fit to height on certain devices. 2 years 9 months ago #10270

  • Davide
  • Davide's Avatar Topic Author
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
with PdfLayoutView you should use
m_view.PDFSetView(int def_view);
to change view.

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

Pdf is not fit to height on certain devices. 2 years 8 months ago #10292

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
Was you adding the link of uploaded attachment to your post body?

May you try again?

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

Pdf is not fit to height on certain devices. 2 years 8 months ago #10298

  • Davide
  • Davide's Avatar Topic Author
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
you can't fit your pdf both in height and width, because the ratio between height and width of the pdf are different from the ratio of the screen dimensions.

I suggest you to center the pdf vertically on the reader.

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

Last edit: by Davide.

Pdf is not fit to height on certain devices. 2 years 8 months ago #10310

  • Davide
  • Davide's Avatar Topic Author
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Karma: 17
  • Thank you received: 65
Hi,
this is the documentation about layout parameters
/**
     * set layout parameters.
     * @param verts applied duals flag for vertical screen
     * @param horzs applied duals flag for landscape screen<br/>
     * Element which set to true mean this cell treat as dual page, otherwise treat as single page.<br/>
     * For example, book has a cover(first page treat as single) just codes:<br/>
     * verts = null;<br/>
     * horzs = new boolean[1];<br/>
     * horzs[1] = false;<br/>
     * Pages, those out of array bound:<br/>
     * in vertical screen: treat as single page(false).<br/>
     * in landscape screen: treat as dual page(true).<br/>
     */

To center the pdf vertically you have to set the last parameter (page_align_top ) to false.

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

  • Page:
  • 1
Powered by Kunena Forum