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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,587 questions
0 comments No comments
{count} votes

Accepted answer
  1. Srinivasa Rao Darna 6,686 Reputation points Microsoft Vendor
    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".


0 additional answers

Sort by: Most helpful