change min scale - RadaeePDF.com - Results from #6
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC: change min scale

change min scale 4 years 11 months ago #7225

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 886
  • Karma: 43
  • Thank you received: 16
use single view mode.
set def_view = 3; in Global.default_config();

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

change min scale 4 years 11 months ago #7227

  • custompdf
  • custompdf's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
I do!
But still the pdf page is on the left corner.
dl.dropboxusercontent.com/u/23323670/Bil...%20um%2011.14.29.png

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

change min scale 4 years 11 months ago #7240

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 870
  • Karma: 23
  • Thank you received: 71
The vertical layout (def_view = 0), fits based on the view width
The horizontal layout (def_view = 1), fits based on the view height (aligned to the left)
The single layout (def_view = 3), fits based on the view width and height (centered)

As what you need, the single layout should work..

You can also check, PDFView.vCenterPage(int) vLayout (of the different views)

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

change min scale 4 years 11 months ago #7313

  • custompdf
  • custompdf's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
As i told you:
I'm using single view mode.

set def_view = 3; in Global.default_config();

and if i call get dev view it returns 3.
But still - its not centered..

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

change min scale 4 years 6 months ago #8618

  • alexander.gustke
  • alexander.gustke's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
same problem here:

i am using for a pdf with only one page the single layout (def_view = 3), but content is still cropped at the bottom in portrait mode. I use the sample project (3.3.14).

The important fact: it only happens on a nexus 9 (4:3 - screen ratio).

So any suggestions?

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

change min scale 4 years 6 months ago #8642

  • alexander.gustke
  • alexander.gustke's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
any updates?

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

Powered by Kunena Forum