How to convert Word, Excel and Power Point files to PDF using only the Power Apps canvas.

I found this article interesting and tried it out.
Consumer Privacy Act (CCPA) Opt-Out Icon
スポンサーリンク

Advance preparation

The assumption is that the file needs to be in the document library, so a sample file is created on the SPO.

Building Power Apps

Building Power Apps is very simple, just display the document library in a gallery,
and put the following expression in the button.

Download(Substitute(GalleryName.Selected.Thumbnail.Large, "/thumbnail", "/pdf"))

*Here is the formula for placing the button in the gallery.

This completes the building of Power Apps.

Check operation.

If you first run the formula against a pptx file,
a PDF file is created in a separate tab, as shown in the image.
*Of course, you can also download the file using the browser functions.
If the formula is subsequently run against a docx file,
this is also converted neatly to PDF.
Finally, when the formula is run against an Excel file,
this is also converted neatly to PDF.

Can Excel PDFs be turned horizontally? Does it work on mobile? These questions have not yet been investigated.

However, if the file can be converted to a clean PDF with this feature, it may be much easier, as you don’t have to create a Power Automate every time.

Related links

Copied title and URL