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

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

PDF Viewer Control - Option Show Controls not working anymore

(2) ShareShare
ReportReport
Posted on by 4
In the past, the Controls (Search field, page fwd, bwd, page 1/x and zoom out/in) of the PDF Viewer Control were visible.

Now they are gone. I can enable/disable them in the dev studio, but they don't show up in the published version.
When the published app starts, the control bar is visible for a split second, but that's it.
I've tried forcing visibility with a variable set to true when the app starts, but nothing changes.
Has anyone experienced this and knows how to fix it?
I have the same question (0)
  • Verified answer
    marimon Profile Picture
    14 on at
    PDF Viewer Control - Option Show Controls not working anymore
    You can either use a timer, as others suggested, or use the OnStateChange property in the PDFVIEWER control:
     
    UpdateContext({varcontrols:false});
    UpdateContext({varcontrols:true})
     
    And set varcontrols as ShowControls property
     
    Neither of them are perfect solutions. If your pdf takes longer to load, the timer must repeat itself in a loop or be long enough to cover any scenario, which becomes uncomfortable to me. The StateChange solution also has it's flaws, if you open twice the same file, it doesn't get seen as a state change and you need to move to the second page of the file to trigger the control. 
     
    I hope Microsoft fixes it in upcoming updates.
  • Suggested answer
    Cameron Greene Profile Picture
    7 on at
    PDF Viewer Control - Option Show Controls not working anymore
    I had to work around this by adding this to my gallery. I really hate that this works as other simple methods didn't seem to work.
     
    I plan to remove this as soon as MS fixer their stuff...
     
    Gallery
    On Select: 
    Set(VarShowControls, false);
    UpdateContext({ startTimer: !startTimer })
     
    Then on my timer
     
    OnTimerEnd:
    Set(VarShowControls, true);
    UpdateContext({ startTimer: false })
     
    Start:
    startTimer
     
    Reset:
    True
     
    Visablity:
    False
  • Ram Prakash Profile Picture
    5,408 Super User 2025 Season 2 on at
    PDF Viewer Control - Option Show Controls not working anymore
    Hi,
     
    Not sure, may be is there any Microsoft updated anything?
     
    Please mark as answer if my suggestion helps.
    Subscribe here for More Useful videos : https://www.youtube.com/@rampprakash3991
     
     
     
  • Cameron Greene Profile Picture
    7 on at
    PDF Viewer Control - Option Show Controls not working anymore
    I'm getting the same issue, changed nothing and one day it stopped working! Typical Microsoft!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 982 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 396 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 356

Last 30 days Overall leaderboard