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 / Download(filename.pdf)...
Power Apps
Unanswered

Download(filename.pdf) Opening another browser

(0) ShareShare
ReportReport
Posted on by 125

Hi Folks,

 

I need to download a PDF file from SharePoint Documents. Other files, .jpg, .xlsx. automatically downloading the file but PDF it opens another browser tab to view. 

 

Is there a way to download it directly?

Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    This is due to a setting on your machine which is set to open .pdf files from the browser as the default action. This experience would not be the same for everyone using your app as it will depend on what their Operating system settings are for default file associations.

    PDFs will by default try and open in Microsoft Edge, which is their associated program by default within Windows 8/10/11 - you will need to change this to something else if you wish to have the file to not open Edge. If you select the browser you are currently using it will open it within that going forward, but this change will only apply to your machine, everyone else will use whatever setting their PC has. I recommend using an actual PDF reader to make it browser-agnostic.

     

    iAm_ManCat_0-1670282346358.png

     

    iAm_ManCat_2-1670282631788.png

     

     

  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @philifova 

     

    The closest to your requirement is the Download function.

    Download("https://download_link.com/of_your_file.docx")

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-download

    But it only works if your users are using Mobile Power Apps and the Windows native  Power App player.

     

    Other than that you'll probably have to look at working on a more advanced component (PCFx) that could simulate a javascript that initiates a download.  Here is the forum for it.

    https://powerusers.microsoft.com/t5/Power-Apps-Pro-Dev-ISV/bd-p/pa_component_framework

     


      ✔️
    Just in case my response helped you solve your problem, please mark/accept this as a SOLUTION This helps community members if they experience a similar issue in the future.

     

      🔗
    🕸bistek.space  🐦 @cha_bistek  📺 @BisTekSpace 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard