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

saveAsBlob Format PDF

is it possible to use the saveAsBlob method in pdf format (saveAsBlob ("Pdf")) or something that can convert word documents to pdf on the client side ?

1 Reply

KC Karthikeyan Chandrasekar Syncfusion Team January 17, 2019 06:47 AM

Hi John,  
Thanks for contacting Syncfusion support.  
At present, we don’t have support for converting word document to pdf in client side. We have logged this as feature request in our database. We will implement this feature in any of our upcoming releases. We will update you when this feature has been implemented.  

But we have support for converting word document to pdf in server side by sending the document to web server as demonstrated in in below link.  
Client Side:  

Server Side:  
Please find C# code to convert word to pdf and send it back to client side  
public IActionResult DocToPDF(IFormCollection data)  
    Stream stream = new MemoryStream();  
    IFormFile file = data.Files[0];  
    var fileName = file.FileName;  
    stream.Position = 0;  
    Syncfusion.DocIO.DLS.WordDocument wordDocument = newSyncfusion.DocIO.DLS.WordDocument(stream, Syncfusion.DocIO.FormatType.Docx);  
    //Instantiation of DocIORenderer for Word to PDF conversion  
    DocIORenderer render = new DocIORenderer();  
    //Converts Word document into PDF document  
    PdfDocument pdfDocument = render.ConvertToPDF(wordDocument);  
    //Saves the PDF file  
    MemoryStream outputStream = new MemoryStream();  
    //Closes the instance of PDF document object  
    outputStream.Position = 0;  
    return File(outputStream, "application/pdf", fileName + ".pdf");  

Live Chat Icon For mobile
Up arrow icon