Microsoft Graph API - font not embedded in a PDF file after conversion from Word

Dawid Nowak 1 Reputation point
2021-12-28T15:25:14.99+00:00

Description
We use the Microsoft Graph API to convert Word documents to PDF.

We use the "Wingdings 2" characters "\u0053" and "\u00AE" of "Wingdings 2" to insert checked and unchecked checkboxes. Since a few days ago the font "Webdings" was embedded in the PDF. As of today "Times New Roman" is embedded instead.

When I convert the Word document to a PDF with the Word desktop app (File -> Export -> PDF) then "Wingdings 2" is embedded in the PDF as expected.

Since the wrong font is embedded in the PDF the checkbox symbols do not look like checkbox symbols any more.

To Reproduce

Create a Word Document with "Wingdings 2" symbols in it
Make an API request like this:

var graphClient = new GraphServiceClient( authProvider );

var queryOptions = new List<QueryOption> { new QueryOption("format", "pdf") };
var pdf = await graphClient.Drives[{drive-id}]
            .Items[{document-id}]
            .Content
            .Request(queryOptions)
            .GetAsync();

Expected behavior
The font which is used in the Word document should be embedded in the PDF.

Thanks

Microsoft Security Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Dawid Nowak 1 Reputation point
    2022-01-24T23:43:40.66+00:00

    Dear all,

    I do not know, if there was any bugfix last week but the conversion from Word to PDF seems to work again (Wingdings2 is displayed correctly now).

    Thanks a lot.

    Topic can be closed :)

    Best regards
    Dawid

    0 comments No comments

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.