Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11676 Reply

    Seb

    To reproduce the problem, just use your Android sample project and add into ReaderWithControllerActivity:

    mReader.setPageDisplayMode(BasePlugPDFDisplay.PageDisplayMode.BILATERAL_HORIZONTAL);
    just after
    mReader = SimpleReaderFactory.createSimpleViewer(this, listener);

    While taking your device in LANDSCAPE mode, launch the app and read a pdf file.
    It appears fine in landscape (2 pages BILATERAL_HORIZONTAL) => OK
    Rotate the device in portrait mode. Only one page is displayed => OK

    Quit the app.

    While taking your device in PORTRAIT mode, launch the app and read a pdf file.
    It appears fine in portrait (1 page) => OK
    Rotate the device in landscape mode. Only one page is displayed => ERROR !!! It should displayed (2 pages BILATERAL_HORIZONTAL).

    Your advices are welcome, thanks.

    #11678 Reply

    Dr. Plug
    Moderator

    Hello seb,

    Thank you for your question and patience.
    When you call the openFile method, the PlugPDF SDK call the setPageDisplayMode(PageDisplayMode.HORIZONTAL) method. Thus, The mReader.setPageDisplayMode(BasePlugPDFDisplay.PageDisplayMode.BILATERAL_HORIZONTAL) method should be used after the mReader.openFile(fileName, “”) method is called.

    If you have any further questions, feel free contact to us.

    Best regards,

    Dr.Plug
    PlugPDF Support

    #11716 Reply

    Seb

    Thanks Dr. Plug, it works fine.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Android rotation result differs depending on order of rotation
Your information: