Implementation Steps
- Store Files in SharePoint Document Library
Ensure your Word, Power Point, and Excel files are stored in a SharePoint document library. This library will serve as the data source for the Power App. - Create a Connection in Power Apps
- Open Power Apps and create a new app or open an existing one.
- Go to the Data tab and click Add data.
- Search for SharePoint and select it.
- Connect to your SharePoint site and select the document library where your files are stored.
- Create a Gallery Connected to SharePoint
- Add a Gallery control to your app.
- Set the Items property of the Gallery to the SharePoint document library connection you created.
- Customize the Gallery to display relevant information, such as the document title or name.
- Example: Filter the gallery Items to show only Word, Excel, and PPTs
Filter(Documents, Last(Split('File name with extension', ".")) in ["docx", "xlsx", "pptx"])
- Example: Filter the gallery Items to show only Word, Excel, and PPTs
- Covert and download PDF version of files
- Add a Download button in gallery
- In OnSelect property of button, use below expression
Download(Substitute(ThisItem.Thumbnail.Large, "/thumbnail", "/pdf"))
- Output:
Click Download button to get the PDF version of Word, Excel, or PPT files.
*This post is locked for comments