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

Cannot convert from doc / docx to pdf

Thread ID:





123826 Apr 25,2016 10:18 AM UTC Apr 26,2016 01:02 PM UTC LightSwitch Silverlight 1
Tags: DocIO
k chaitanya babu
Asked On April 25, 2016 10:18 AM UTC

HI team how can i convert doc/ docx to pdf 
my data saving in  azure 

this is my code( i am converting doc file into pdf and stoe that into a list after this i need to mearge all pdfs into singel and saved to azure )

 if (lstDocFileNames.Count > 0)
                    for (int i = 0; i < lstDocFileNames.Count; i++)
                        WordDocument wordDoc = new WordDocument(strLocalUploadedDocumentsFolderPath + "\\" + lstDocFileNames[i]);
                        DocToPDFConverter converter = new DocToPDFConverter();

                        // Convert word document into PDF document
                        PdfDocument pdfDoc = converter.ConvertToPDF(wordDoc);

                        // Save the pdf file to Local folder
                        pdfDoc.Save(strLocalUploadedDocumentsFolderPath + "\\" + lstDocFileNames[i].Split('.').First() + ".pdf");

                        if (LocalFiles.Count() > 0)
                            for (int j = 0; j < LocalFiles.Count(); j++)
                                if (LocalFiles[j] == null || LocalFiles[j] == string.Empty)
                                    LocalFiles[j] = strLocalUploadedDocumentsFolderPath + "\\" + lstDocFileNames[i].Split('.').First() + ".pdf";//Keep the file, in which order they have sent to merge

Suganya Rathinam [Syncfusion]
Replied On April 26, 2016 01:02 PM UTC

Hi Chaitanya,

On further analyzing your requirement, we suspect that you are trying to use the Azure web sites in your LightSwitch Silverlight projects to save the merged PDF file which is converted from Word document. Currently DocIO does not have support for Word to PDF conversion in Windows Azure web sites and LightSwitch Silverlight platform. Since DocIO uses meta file and GDI functionality for Word to PDF conversion which is not supported in Windows Azure web sites and LightSwitch Silverlight platform.

So, we suggest you to use any Azure cloud service as background service to convert Word document to PDF, PDF merging process and deploy this service in your LightSwitch Silverlight project. Kindly confirm whether our suggestion suits your requirement or not? If it does not suite, then kindly provide the clear workflow details about your requirement. So that we can analyze further and provide you appropriate solution at the earliest.



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