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 / Pdf viewer controls do...
Power Apps
Answered

Pdf viewer controls do not show anymore

(3) ShareShare
ReportReport
Posted on by 49
Hello team,
 
in one of my canvas apps the pdf viewer stopped showing the Controls on top, without me doing anything to the App.
 
I can see that it renders when the pdf is showing up but then immediately disappears.
 
Does anyone recognize this behavior? Has something changed?
 
Wim
Categories:
I have the same question (0)
  • Suggested answer
    Mark Nanneman Profile Picture
    991 Super User 2025 Season 2 on at
    There's a "Show Controls" property on the PDF control.   Just switch it to true to see the controls again.
     
    You could also add a button or toggle to let the user toggle it.
     


    I don't know why it changed on you.

    Perhaps someone accidently modified it? 

    The PDF Viewer Control does say it's "Experimental" so it's also possible they can change things on us and maybe the controls used to be on by default.
  • wimhofland Profile Picture
    49 on at
    Unfortunately it is more complex than this. :-(
     
    The show controls option is ON. When the page loads I can see the controls but then when the document renders, the controls disappear. 
     
    The thing that bothers me is that it worked. For a long time. and all of a sudden it stopped working.
     
    I also know that in the description of the PDF viewer it says 'experimental', already for a couple of years.
     
    Strange thing is that PDF viewer works even without activation of the setting in Experimental options. 
     
    thanx for the try
     
     
  • Verified answer
    wimhofland Profile Picture
    49 on at
    I created a work around for this problem.
     
    When I need the PDF viewer in the app I set "Show Control" option to false AND immediately after this to true.
     
    Set (varControls, false);
    Set(varControls, true)
     
    I do not like these kind of solutions but it works
  • Thor_PPC Profile Picture
    365 on at
    Thanks
  • Rohit4044041 Profile Picture
    286 on at
    I have a same issue. This is used to work and now it does not. 
     
     
    Tried below trick of setting it to false and then true, still controls are not visible
     
    They are visible for fraction of second during the load and then disapper :( 
     
    MS of course said cant said becasue its experimental . (for more than 2 years now )
  • Verified answer
    SarfrazKhan Profile Picture
    35 on at

    On the PDF viewer control:

    Set "ShowControls" to:

    ​showControls

     

    Set "OnStateChange" to: 

    ​UpdateContext( { showControls: false });
    
    UpdateContext( { showControls: true });

     

  • wimhofland Profile Picture
    49 on at
    Latest response from sarfrazkahn is sort of same workaround that I use with local variable.
    This would probably also work for me.
     
    I do not hear anything from the customer anymore, so for me it is closed right now :-)
  • ecombs Profile Picture
    148 on at
    The verified answer led to an error in the Update Context
  • Suggested answer
    blx Profile Picture
    2 on at
    Hello,
     
    I had same issue recently. On every file change controls were missing.
    I've created global variable and setting it false and true on file selection. That didn't worked.
    Added a button that could be called, still no success.
    Then I found property in PDF Viewer called "OnStateChange". So, whenever new file is selected to be displayed in viewer, I'm setting control variable to false and to true. That is working properly.
    It's not perfect, but still better than nothing.
  • SteffenHNW Profile Picture
    47 on at
    This is still not working. Are there any news why this won't be fixed or is there a new pdf viewer I don't know?
     
    Regards, Steffen

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard