web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show control doest wor...
Power Apps
Suggested Answer

Show control doest work (PDF Viewer)

(0) ShareShare
ReportReport
Posted on by 2
I have a problem where I should be able to zoom in, zoom out, and next page in the pdf viewer, but now "show control" when closed will disappear even though it is "true". Is this a bug from microsoft or what?
example like the picture that I have marked
Categories:
I have the same question (0)
  • Suggested answer
    VASANTH KUMAR BALMADI Profile Picture
    266 on at
    Hi,

    The issue you’re describing in the Power Apps PDF Viewer control—where the "Show Controls" property doesn't persist as expected—may be a bug or a behavior influenced by the app’s logic or settings. Here's a breakdown of potential causes and solutions:

    Possible Causes:

    1. Control Resetting Issue:

      • The "Show Controls" property might be resetting to its default value due to app navigation or state changes.
    2. State Management Problem:

      • If the property is being updated dynamically in the app's formula, it could conflict with manual settings.
    3. Platform or Environment Bug:

      • There could be a bug in the Power Apps PDF Viewer control itself, especially if this behavior started after a platform update.
    4. Conditional Logic or Formula:

      • Check if there's any formula in the "Show Controls" property or elsewhere that affects its visibility.

    Steps to Troubleshoot and Resolve:

    1. Verify "Show Controls" Property:

    • Ensure the "Show Controls" property is explicitly set to true.
    • If it’s dynamically set using a formula, verify the logic to ensure it's always true when required.

    2. Test Static PDF:

    • Load a static PDF file into the viewer and check if the issue persists. If the behavior works with a static file, the problem might be related to how the PDF is being dynamically loaded.

    3. Inspect App Navigation Logic:

    • If the PDF Viewer is part of a screen that gets reloaded or reset, ensure the control's state (including "Show Controls") is not being affected by navigation or reset actions.

    4. Upgrade or Reinstall Power Apps Studio:

    • Ensure you're using the latest version of Power Apps Studio. Sometimes, reinstalling or upgrading resolves such issues.

    5. Workaround for Persistent "Show Controls":

    • Use a variable to control the visibility:
      // Set the variable when the app starts
      OnStart: Set(ShowPDFControls, true);

      // Use the variable in the "Show Controls" property
      Show Controls: ShowPDFControls
    • This ensures the controls remain visible unless explicitly toggled.

    6. Test in Different Browsers/Devices:

    • If the app behaves differently in browsers or on mobile devices, this might indicate a rendering issue or device-specific bug.

    7. Report to Microsoft Support:

    • If none of the above steps resolve the issue, report it to Microsoft. Include:
      • App details (platform, environment, version).
      • Steps to reproduce the issue.
      • Screenshots or videos demonstrating the problem.

    Temporary Workaround:

    If the issue persists despite the above steps, consider creating custom zoom and navigation controls (e.g., buttons to increment/decrement zoom level or navigate pages) using the PDF Viewer’s properties:

    • Zoom: Use the Zoom property to control the zoom level dynamically.
    • Navigation: Use the Document.Pages property for page navigation.

    Here’s an example of custom controls:

    // Buttons for Zoom
    OnSelect (Zoom In): Set(PDFZoom, PDFZoom + 10);
    OnSelect (Zoom Out): Set(PDFZoom, PDFZoom - 10);

    // Buttons for Page Navigation
    OnSelect (Next Page): Set(CurrentPage, Min(CurrentPage + 1, PDFDocument.Pages));
    OnSelect (Previous Page): Set(CurrentPage, Max(CurrentPage - 1, 1));

    // Apply the variables to the PDF Viewer properties
    Zoom: PDFZoom
    Page: CurrentPage
     
    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!
  • Suggested answer
    HH-03011009-0 Profile Picture
    2 on at
    Thanks for your response.
    I've tried that method before asking in the forum, but it still doesn't work, can you provide another solution?
    I've even tried creating a new pdf viewer component, but it's still the same
  • wimhofland Profile Picture
    49 on at
    I have a problem with the "show controls" option. It worked in December. This morning (after holiday) users found out that the Controls bar is not visible anymore. 
     
    • the "Show Controls" property is explicitly set to true.
    • it is working fine with a static PDF file. So the problem might be related to how the PDF is being dynamically loaded. However, it worked before. Nothing changed.
    • The screen where the pdfviewer is used does not get reloaded or reset
  • Cameron Greene Profile Picture
    7 on at
    I'm having the same issue, did you ever find a proper fix for this??

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard