Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ijas AhamedRank #708 · 3.3K reputationPosted Oct 26, 2022, 2:28 PM EDT
Following https://products.aspose.com/pdf/net/conversion/pdf-to-docx/
Leon DRank #851 · 2.6K reputationPosted Oct 26, 2022, 9:25 PM EDT
You can use Spire.PDF (https://www.e-iceblue.com/Download/download-pdf-for-net-now.html) to convert PDF to Docx or Doc with ease.
using Spire.Pdf; namespace ConvertPdfToDocx { class Program { static void Main(string[] args) { //Create a PdfDocument object PdfDocument doc = new PdfDocument(); //Load a sample PDF document doc.LoadFromFile(@"C:\Users\Administrator\Desktop\sample.pdf"); //Convert PDF to Docx and save it to a specified path doc.SaveToFile("ToDocx2.docx", FileFormat.DOCX); } } }In addition, it also provides a free version named Free Spire.PDF which is free for commercial and personal use.
https://www.e-iceblue.com/Download/download-pdf-for-net-free.html
Uday DodiyaRank #239 · 10.3K reputationPosted Oct 27, 2022, 1:40 AM EDT
Refer Following
https://www.c-sharpcorner.com/forums/how-to-convert-pdf-to-docx-format-in-c-sharp
Vishal YelveRank #178 · 13.6K reputationPosted Oct 27, 2022, 3:14 AM EDT
https://sautinsoft.com/products/pdf-focus/convert-pdf-to-docx-in-dotnet.php
https://products.aspose.com/pdf/net/conversion/pdf-to-docx/
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Oct 27, 2022, 10:44 AM EDT
Hello Naresh refer below article
https://www.c-sharpcorner.com/UploadFile/07c1e7/convert-pdf-to-word-using-C-Sharp/
Marvin ReidRank #1,963 · 746 reputationPosted Oct 31, 2022, 12:13 PM EDT
You can use the DocumentConverter class to convert to PDF. Here is an example:
using (DocumentConverter documentConverter = new DocumentConverter()) { var input = @"C:\Inputfiles\input.pdf"); var output = @"C:\Outputfiles\output.docx"); var jobData = DocumentConverterJobs.CreateJobData(input, output, DocumentFormat.Docx); jobData.JobName = "Convert to DOCX"; var documentWriter = new DocumentWriter(); documentConverter.SetDocumentWriterInstance(documentWriter); var renderingEngine = new AnnWinFormsRenderingEngine(); documentConverter.SetAnnRenderingEngineInstance(renderingEngine); var job = documentConverter.Jobs.CreateJob(jobData); documentConverter.Jobs.RunJob(job); }https://www.leadtools.com/help/sdk/tutorials/dotnet-console-convert-files-with-the-document-converter.html