question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How i can Make FullScreen PDFView When i Rotate Screen.

See original GitHub issue

Hi Could You help me please about making full screen pdfviewer when change rotation like lanscape. I tried two methods but didnt work, First one;

        PDFView.Configurator.onRender(new OnRenderListener() {
            @Override
            public void onInitiallyRendered(int nbPages, float pageWidth, float pageHeight) {
                pdfView.fitToWidth();
            }
        });

Second one;

    @Override
    public void onConfigurationChanged(Configuration newConfig)
    {
        super.onConfigurationChanged(newConfig);
        if(newConfig.orientation ==Configuration.ORIENTATION_LANDSCAPE)
        {
            pdfView.fitToWidth();
        }
    }

Help me please how i can do that? By the way, i want to do this responsivelity.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:24 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Abraxelxcommented, Nov 19, 2021

@amit6663 Remove below code block if you have it:

android:configChanges="orientation|screenSize"

0reactions
amit6663commented, Nov 19, 2021

@Abraxelx did you get the solution? If did then share here please, I’m getting the same problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PDFKit: PDFView doesn't resize when device rotated
The app is rotatable to any orientation. The PDFView is full-screen and single-page. The PDF displays as expected when launched in either ...
Read more >
Set a document to open in full screen mode
Open the document · Go to Document Properties (File -> Document Properties) · Click Initial View tab · Select Navigation tab dropdown and...
Read more >
Get full screen or dual screen with PDF Documents ... - YouTube
GET BETTER WITH NICKLAND MEDIA: EVENT & SPEECH • S01.E01Quick tips to enhance your event and your speechPDF Documents: How to manage them ......
Read more >
Full Screen plugin - React PDF Viewer
The `full-screen` plugin provides a button that can be used to view the PDF document in full screen mode. It is possible to...
Read more >
Viewing PDFs and viewing preferences, Adobe Acrobat
If the Full Screen navigation bar is not shown, you can use keyboard shortcuts to navigate through a PDF. Note: If you have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found