Use Microsoft Graph to convert the format of your documents
Get PDF versions of your files stored in Office 365
You can easily convert file formats to enable sharing and distribution of files in OneDrive with clients or customers. The DriveItem API automatically converts files to PDF format. All Office file types for Word, Excel, and PowerPoint, and other common formats like CSV and RTF, are supported. With Microsoft Graph, eliminating the need to save files in multiple formats is as simple as adding a query parameter to the API call.