Parsing response type of /Api/DocumentEditor/Import - not JSON as expected

According to the documentation, the response from /Import endpoint should be JSON of:


{
AbstractLists,
BackgroundColor,
Lists,
Sections
}

https://help.syncfusion.com/js/webapi/documenteditor


But the response I'm getting back is {"sfdt": "<some base-64-string>".

I need to do server-side pre-processing of the response (to add some changes for review. Can you provide any guidance to how I can convert the sfdt field into the actual JSON result so I can manipulate it before returning to the client?


Thanks!

Noah


1 Reply

AD Aravind Dharani Syncfusion Team November 18, 2024 03:52 PM UTC

noah,

The link you have shared refers to Essential Studio One. Please find the below documentation link for Essential studio two for instructions on converting documents into SFDT format:


 

When converting to SFDT, there are two options: Optimize and Unoptimize. Optimizing will result in a smaller file size by compressing the JSON. By default optimizeSfdt will be true. If you prefer not to optimize, you can set OptimizeSfdt to false. Please refer to the documentation linked below for more details:



Regards,
Aravind D

Loader.
Up arrow icon