Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6714 Reply

    DoanDM

    Dear Dr. Plug,
    I use this code for ReaderView :
    mReaderView.setFitType(FitType.HEIGHT);
    But it does not effect.
    By default, pdf viewer always fit full screen, how can I fit the viewer by height?
    Thank you.

    #6751 Reply

    Dr. Plug
    Moderator

    Hi DonaDM,

    Thanks for your inquiry. Meaning of height fit of the our SDK is set to match on the device by vertical than horizontal. This means that, If your document height is larger than the width, show whole the page. and, Default value for FitType is WIDTH.

    Best Regards,
    Dr. Plug

    • This reply was modified 1 year, 9 months ago by  Dr. Plug.
    #6934 Reply

    Tam

    Let’s say we have a pdf page Width > Height
    we set: mReaderView.setFitType(FitType.HEIGHT);
    When Android device is in landscape mode, the page still fits the width.
    we want the pdf page fits the height of the device.

    Can you please advice how to do it?

    #6935 Reply

    Tam

    in addition my question above, we want the page always fits the Height of the device even we are rotating the device.
    It is working well on iOS but NOT Android

    #6940 Reply

    Dr. Plug
    Moderator

    Hi Tam,

    iOS and Android, they implemented in the same way. Actually, I tried testing on both platform. But, both SDK couldn’t scroll up and down when set to fit type HEIGHT. Can you more explain for your problem?

    Thank you,
    Dr. Plug

    #6950 Reply

    Tam

    Hi Dr.Plug,

    Here is my problem:

    I need to display a pdf in full screen mode, mean I want always see the whole single page on the screen, even the page is bigger than the screen, and even the device is in Portrait or Landscape mode.

    Thanks for your help.
    Tam

    #6955 Reply

    Dr. Plug
    Moderator

    Hi Tam,

    Thank you for your feedback. If you set ‘FitType.MINIMUM’, then always show whole of page in portrait or landscape.

    Thank you.
    Dr. Plug.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: FitType on landscape direction
Your information: