php-connect-rest-sample icon indicating copy to clipboard operation
php-connect-rest-sample copied to clipboard

Download pdf from a word file in onedrive

Open daniel503sv opened this issue 9 years ago • 1 comments

when use the same format of the onedrive api of download a file in pdf format with ?format=pdf at the end of a download file request, doesnt create a pdf download link in the header, create the same link to the word file, and in the graph documentation, is not the file format section only in https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_get_content_format

Perhaps isnt implemented, but the onedrive api docu utilizes the graph oauth

example of the request createRequest("GET", "/me/drive/items/".$itemid.'/content?format=pdf')->execute(); maked with the graph php api

daniel503sv avatar Oct 05 '17 00:10 daniel503sv

Thanks for your question. Since this question is more about Microsoft Graph capabilities in general and not the sample specifically, could you post this question to Stack Overflow (and tag with microsoftgraph)? That would make the answer available to a wider audience.

jamescro avatar Oct 05 '17 17:10 jamescro