Is there a way to get a word document as a PDF

GSH-1402 45 Reputation points

I am trying to download the Word document of a given version and I am using below endpoint,


When I am using it, I get a docs file, I am hoping to download a PDF version and adding format?pdf to the end also did not work.

Is there a way to get a PDF file instead of a Word file.

Thank you very much.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,095 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. awijekoon 75 Reputation points Microsoft Vendor

    Hello GSH-1402

    Have you checked the content convert Graph API

    GET /drive/items/{item-id}/content?format={format}   
    GET /drive/root:/{path and filename}:/content?format={format}

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments