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

    Rafael

    Using the ReaderView I am currently adding a button to switch between Thumbnail and Vertical PageDisplayMode.
    This works fine, however the View does not exit the Thumbnail Display Mode once a preview page is selected.

    How can this behaviour be added?

    Best regards
    Rafael

    #11521 Reply

    Dr. Plug
    Moderator

    Hello Rafael

    Thank you for sending us your inquiry.

    The reason why the View does not exit the Thumbnail Display Mode is that the PageDisplayMode keeps the mLastPageDisplaymode.
    We have a plan to provide the property that the mLastPageDisplaymode can be set by user.
    Probably, it would be released in next week with new version of PlugPDF for Android.

    We will be happy to assist you if you require any further assistance.

    Best regards,
    Dr.Plug

    PlugPDF Support.

    #11526 Reply

    Rafael

    Thanks for the quick reply; is there any workaround for the scenario: Thumbnail Mode -> Click on Page -> Page goes full screen?
    The SimpleDocumentViewer seems to provide this behaviour but I can not use it.

    Thanks,
    Rafael

    #11527 Reply

    Dr. Plug
    Moderator

    Hello Rafael

    In the Thumbnail Mode, the PageDisplayMode keeps the LastPageDisplayMode.
    When you click on page in the Thumbnail Mode, it will show you the LastPageDisplayMode.
    Here are some scenarios for helping you.
    Scenario 1: Thumbnail Mode -> Click on page -> full screen.
    Scenario 2: Vertical Display Mode -> Thumbnail Mode -> Click on page ->Vertical Display Mode.
    (so, you cannot go full screen because it keeps the last VerticalDisplayMode)
    Scenario 3: Vertical Display Mode ->Horizontal Display Mode -> Thumbnail Mode -> Click on page ->Horizontal Display Mode.
    ( you can go full screen as known as Horizontal Display Mode because it keeps the last DisplayMode as Horizontal Display Mode.)

    I hope that this will help you.

    Best regards,
    Dr.Plug

    PlugPDF Support.

    #11528 Reply

    Dr. Plug
    Moderator

    Hello Rafael

    We are happy to inform you that we’ve just released a new update to PlugPDF and the issue you reported is improved.
    Please, download the PlugPDF SDK at https://plugpdf.com/sdkfile/PlugPDF_Android_temp.zip
    The below code snippet will help you to do what you want.

    I hope that this will help you.

    Best regards,
    Dr.Plug

    PlugPDF Support.

    • This reply was modified 4 months ago by  Dr. Plug.
    • This reply was modified 4 months ago by  Dr. Plug.
    #11542 Reply

    rafael

    Hi,
    the problem still persists.

    This is the relevant snippet from my code:
    protected override void OnCreate(Bundle savedInstanceState)
    {
    […]
    _readerView.SetPageDisplayMode(BasePlugPDFDisplay.PageDisplayMode.Vertical);
    […]
    }

    void ToggleViewmode()
    {
    if (!_isThumbnailMode)
    {
    _readerView.SetPageDisplayMode(BasePlugPDFDisplay.PageDisplayMode.Thumbnail);
    }
    else
    {
    _readerView.SetPageDisplayMode(BasePlugPDFDisplay.PageDisplayMode.Vertical);
    }

    _isThumbnailMode = !_isThumbnailMode;
    }

    Once the ThumbnailMode is activated and I click on a page nothing happens.
    When I activate vertical mode again the Viewer jumps to the in thumbnail mode selected page.

    #11543 Reply

    Dr. Plug
    Moderator

    Hello Rafael

    Thank you for sending your inquiry.
    You need to use “setPageDisplayModeAfterThumbnail” for solving your issue.
    Please check the previous code snippet answer.

    Best regards,
    Dr.Plug

    PlugPDF Support.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Thumbnail Preview not returning to fullscreen
Your information: