The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Yes, correct. You can use Download/convert an OneDrive file in another format Microsoft Graph Rest API and currently there is no Microsoft Graph API avialble to convert .vsdx format into other file format.
Here are the few examples to convert an OneDrive .pptx file to .jpg format using Microsoft Graph API.
https://graph.microsoft.com/v1.0/me/drive/root:/{filename.pptx}:/content?format=jpg&width={width-value}&height={height-value}
https://graph.microsoft.com/v1.0/users/{user-id} or {UserPrincipalName}/drive/root:/{filename.pptx}:/content?format=jpg&width={width-value}&height={height-value}
Note: As per my testing in Postman API tool, only first slide of PPTX file is being converted into .jpg format and where as if we convert .PPTX file into .PDF format then all the slides included in the conversion.
**Example **:
https://graph.microsoft.com/v1.0/me/drive/root:/TestPPT.pptx:/content?format=jpg&width=800&height=800
**Example **:
https://graph.microsoft.com/v1.0/users/******@o365XXX.onmicrosoft.com/drive/root:/TestPPT.pptx:/content?format=jpg&width=800&height=800
Here is the API to convert an OneDrive .pptx file to .pdf format.
https://graph.microsoft.com/v1.0/me/drive/root:/{filename.pptx}:/content?format=pdf
https://graph.microsoft.com/v1.0/users/{user-id} or {UserPrincipalName}/drive/root:/{filename.pptx}:/content?format=pdf
Examples:
https://graph.microsoft.com/v1.0/me/drive/root:/TestPPT.pptx:/content?format=pdf
https://graph.microsoft.com/v1.0/users/******@o365XXX.onmicrosoft.com/drive/root:/TestPPT.pptx:/content?format=pdf
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.