Is there a way to specify a language / locale to 'Convert to other formats' Graph API call?

Oliver Rau 21 Reputation points
2022-11-21T00:14:23.147+00:00

Hi,

I'm using Graph API to convert XLS documents into PDFs.

https://learn.microsoft.com/en-us/graph/api/driveitem-get-content-format?view=graph-rest-1.0&tabs=http#format-options

Whenever the Excel file contains cells with a number, the resulting PDF will use the English number format (e.g., a dot for decimal and a comma for thousands).

In German, they'd be the other way around (comma for decimal and dot for thousands).

I've tried to determine whether the Accept-Language header would make a difference to the transformation call, but no luck.

Is it possible to specify a transformation locale, or am I missing some setting in the Excel sheet (Aside from making the numbers a String)?

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Srinivasa Rao Darna 6,761 Reputation points Microsoft External Staff
    2022-11-22T08:16:52.97+00:00

    Hello @Oliver Rau ,

    driveitem-get-content-format can download word, excel, files into PDF format. But right now, there is no such feature to convert to specific language/locale.

    You may suggest this on graph feedback portal.

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.