We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Create and export PDF from JSON (SFDT)

Thread ID:





143646 Mar 29,2019 04:57 PM UTC Mar 10,2021 06:53 AM UTC JavaScript - EJ 2 5
Tags: DocumentEditor
Asked On March 29, 2019 07:40 PM UTC

Hi Support,
I write the SFDT data(JSON) in my database and I want to know how I can do to generate a PDF based only on this data that is in JSON format that is saved in my database.

Sorry my inglish is bad!!

Ramya Thirugnanam [Syncfusion]
Replied On April 1, 2019 09:05 AM UTC

Hi Gustavo,  
Thanks for contacting Syncfusion support.  
Our SFDT format is support only by DocumentEditor control for importing and exporting documents. And, we don’t have direct support for converting SFDT in to PDF document.  
Instead, we have support for exporting SFDT as Word document(as blob stream) by using `saveAsBlob` which is demonstrated in below documentation link  
And the exported word document can be converted it to PDF by using Syncfusion.DocToPDFConverter library in server side.  
For your convenience, we have prepared as sample to covert word document exported for DocumentEditor in to PDF and save the PDF document in 'App_Data' folder in web server. You can customize this option to save the PDF document in database.  
Please find the sample from below link.  
Ramya T  

Replied On April 1, 2019 12:03 PM UTC

So sorry but would you have some other example in php?

Ramya Thirugnanam [Syncfusion]
Replied On April 2, 2019 10:40 AM UTC

Hi Gustavo, 
We have our server-side library in .Net Core(Syncfusion.EJ2.WordEditor.AspNet.Core) and .Net framework(Syncfusion.EJ2.WordEditor.AspNet.Mvc5Syncfusion.EJ2.WordEditor.AspNet.Mvc4) alone. So, currently we are unable to provide you the sample in php.  
So, for your convenience we have prepared a sample in ASP.NET Core MVC project and .Net core has cross platform support. So, you can run this project in all major operation systems(windows/linux/mac). Please find more detail about .NET Core from below link  
You can also run this project through terminal (CLI). Please find more details about how to install and run .Net Core project from following link    
Please find the commands to run the sample below. 
// To restore dependent packages    
> dotnet restore    
// To run the sample   
> dotnet run   
 Please find Web API project from following link.    
Ramya T 

Replied On March 9, 2021 04:38 PM UTC

Is it possible to convert data to Docx file in the backend itself?

Kurthis Banu Abdul Majeeth [Syncfusion]
Replied On March 10, 2021 06:53 AM UTC

Hi Kundan, 

We had created the sample based on your requirement. 

Server-side sample: 

Please check the solution and confirm us whether it satisfied your requirement. 

Kurthis Banu A. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon