Maui App Android PDF when flipped to landscape is not full screen

WebViewer Version: 11.3

How can I stop the pdf view from loading in landscape? Is this an issue with .net9/Android 35?

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


It sounds like you’re experiencing an issue with the PDF not displaying in full screen when your MAUI app is flipped to landscape mode on Android. This could be related to how the layout is being managed when the orientation changes.

Some things you can try:

  • Check if the layout parameters are set to match the parent dimensions for both portrait and landscape orientations.

  • Ensure that any view settings or configurations are being updated on orientation change. This might involve handling the orientation change event and adjusting the view accordingly.

  • Verify that the WebViewer is set to fill its parent container, and that the container itself is properly sized.

  • Consider using constraints or a responsive layout to adapt to different screen orientations.



Here are some resources that might help you:

  • Android Viewer Customization: This guide can help ensure your viewer is customized properly for full-screen display.

  • Android Get Started: Provides an overview of setting up and initializing the viewer, which might include layout considerations.

  • MAUI Layouts: Learn about handling layouts in MAUI, especially for responsive design.

  • Handling Runtime Changes: This guide from Android developers can help you manage configuration changes like screen orientation.



Hopefully, this helps you solve your problem while you wait for a human to get back to you.

Hi Buryakovsky,

Thank you for reaching out.

I’m afraid I don’t understand the issue here.

Can you clarify what is the left part of your screenshot?
Could you give us more information about your setup? Languages used, Webviewer options, custom CSS if any, etc?

Thank you.

Best Regards,
Mickaël.

Hi, I am using pdftron for Android version 11.7. This is a Maui app in .net9. I am inheriting the DocumentView from pdftron.PDF.Controls.DocumentView2.

The issue is that part of the screen that says ‘Clinic’ is the screen underneath the pdf pop up. Previously it was completely covered by the pop up but now that portion is visible.

Please let me know if you need more information.

Thanks,

Gene

1 Like

Thank you for reaching out to the Support Forum. In order to best assist you, would you be able to submit a minimal runnable sample project that reproduces the issue you are encountering?You can do so at the following link: Submit a ticket : Apryse

I look forward to your response.

1 Like