Hi,
How can we export the .docx file to pdf. Please help me with some code.
Eg.. If i upload a resume with .docx file and it should store it as a pdf file.
Any help would be highly appreciated.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rahul PrasadPosted Jul 29, 2014, 2:22 AM
Try C# sample for converting Word to PDF on MSDN ,sample code is available within the package uploaded.And this solution is based on free C# Word component..Good luck
NebojaPosted Jul 17, 2014, 7:40 AM
So here is a way that you can convert your DOCX resume into a PDF version within any C# app, also you will notice that that Save method will actually export your PDF to ASP.NET client (aka browser's client):
DocumentModel doc = DocumentModel.Load("CV.docx", LoadOptions.DocxDefault);
doc.Save(this.Response, "CV.pdf", SaveOptions.PdfDefault);
The code uses this C# component for word processing, you can also find other .NET samples of DOCX processing tasks that you can achieve with it.
Jay ParekhPosted Mar 5, 2013, 5:12 AM
wordDocument = appWord.Documents.Open(DocFrom.docx");
wordDocument.ExportAsFixedFormat(DocTo.pdf", WdExportFormat.wdExportFormatPDF);
may be it will help.