I'm trying to convert the sfdt to docx on the backend by sending a request to syncfusion like so:
def convert_sfdt_to_docx(file):
try:
api_url = "https://ej2services.syncfusion.com/production/web-services/api/documenteditor/ExportSFDT"
payload = {
"content": file,
"format": "Docx",
}
# Set the headers including the Syncfusion license key
headers = {
"Content-Type": "application/json",
}
response = requests.post(api_url, json=payload, headers=headers)
print(response['content'])
except Exception as e:
print("Could not open the document")
return None
And I'm getting "Could not open the document" with an error 500
If anyone knows how to do that on the backend I would be glad