Converting a docx to PDF - custom embedded fonts not being used

Mark Macumber 1 Reputation point
2021-06-27T22:52:42.09+00:00

I am using the Graph API convert content API (v1) to convert my SharePoint Online hosted files (docx) into PDF files.

The conversion has been working fine to date, however, I have now added custom fonts (proprietary) into the word doc - then I save the word doc with the font embedded.

I can open the docx file in SharePoint online and see the custom font - but when I convert the docx file to PDF using the Convert content API (https://learn.microsoft.com/en-us/graph/api/driveitem-get-content-format?view=graph-rest-1.0&tabs=http) the font is dropped from the PDF and it reverts back to Calibri?

Is this a known limitation, are ther any work arounds that are in place for me to use custom fonts? This is critical for our clients brand to proceed.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,026 Reputation points
    2021-06-28T05:57:57.107+00:00

    Hi @Mark Macumber ,

    As far as I know, currently we don't have option to explicitly specify which font you can use with Graph API for conversion. You may try to sumit the request in Microsoft 365 Developer Platform: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/idb-p/Microsoft365DeveloperPlatform, so that it can be considered to be implemented.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.