question

MarkMacumber-3800 avatar image
0 Votes"
MarkMacumber-3800 asked MarkMacumber-3800 commented

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

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://docs.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.

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered MarkMacumber-3800 commented

Hi @MarkMacumber-3800,

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @MichaelHan-MSFT - but its not so much that I want to specify the font, its that the custom font is embedded into the docx file within SharePoint... I would have thought that when converting the docx file to PDF (using the API) it would use the embedded font in the resulting PDF - but it doesnt seem to

0 Votes 0 ·