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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Create and export PDF from JSON (SFDT)

Thread ID:

Created:

Updated:

Platform:

Replies:

143646 Mar 29,2019 04:57 PM UTC Apr 2,2019 10:40 AM UTC JavaScript - EJ 2 3
loading
Tags: DocumentEditor
Gustavo
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.  
   
 
Regards,  
Ramya T  


Gustavo
Replied On April 1, 2019 12:03 PM UTC

Hi,
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.    
   
 
Regards,  
Ramya T 


CONFIRMATION

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

;