For this, check Working with files in Microsoft Graph which has documentation on how to create, update, upload, download files etc through MS Graph.
For example, to convert a word document to PDF, you would use Download a file in another format with the format variable = pdf and the driveItem-id is the id of a word document on your drive.
GET /me/drive/items/{item-id}/content?format=pdf