Problem to generate pdf from docx by Graph API when docx contains repeating content controls
Filip Mateasko
0
Reputation points
Hi,
we use Graph API to automatically convert generated document (docx) to pdf. The documents are generated by "injecting" custom xml to the template, where the xml with identical structure was bound to content controls. It worked perfectly, but suddenly we have a problem to generate pdf and after hours of investigation I found, that the problem occurs when the docx contains repeating content control. The document has no problem to be open in Word.
Sample request:
response:
{
"error": {
"code": "notSupported",
"message": "Error from Office Service. Url=https://euc.wordcs.officeapps.live.com/document/export/pdf HttpCode=UnsupportedMediaType",
"innererror": {
"code": "cannotOpenFile"
}
}
}
Could you help us with this, please?
Thanks
Filip
Microsoft Security | Microsoft Graph
13,722 questions
Sign in to answer