Convert PDF to Word document

I can't seem to find a sample by Syncfusion. I found one where it's saving an image of the PDF into a word document, but I need my result to be an actual word document where I can read text, parse tables, etc.

I asked ChatGPT, and it gave me this code:

PdfLoadedDocument pdfDocument = new PdfLoadedDocument(pdfPath);

DocIORenderer renderer = new DocIORenderer();

WordDocument docxDocument = renderer.ConvertToWord(pdfDocument);

docxDocument.Save(docxPath);

docxDocument.Close();

pdfDocument.Close(true);

But of course this does not work because renderer.ConvertToWord does not exist. I don't know how ChatGPT came up with "ConvertToWord", because when I search for it on google, I cannot find anything


1 Reply

JT Jeyalakshmi Thangamarippandian Syncfusion Team February 14, 2024 03:31 PM UTC

Currently, we do not support converting PDF files to Word documents. However, we have added this feature request to our list. Additionally, we do not have any immediate plans to implement this support. However, we will consider implementing it in one of our upcoming releases. You can track the status of the feature using the following feedback link.

 

Feedback link: PDF to Word conversion in WinForms | Feedback Portal (syncfusion.com)

However, we have a workaround for converting PDFs to Word documents. Please refer to the KB documentation for further details.

https://support.syncfusion.com/kb/article/7243/how-to-convert-pdf-to-word-document-in-winforms-pdf-library



Loader.
Up arrow icon