SPFx extension — Convert to PDF

This blog post explains how to create an SPFx list view command set extension to convert selected documents to PDF.

Demo of the functionality

Microsoft Graph API provides an endpoint to convert documents to different formats and one of which is PDF. The endpoint accepts the “shared id” or “encoded sharing url” of the item and returns a stream which has the converted content. This API is mainly used for OneDrive and SharePoint…