Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert PDF to WORD in c# [closed]

Tags:

c#

.net

ms-word

pdf

Does the anyone know a .Net component to convert PDF to Word or RTF programatically? I don't want to use OCR and Adobe dependent solutions.

like image 933
John Avatar asked Apr 20 '11 12:04

John


People also ask

How do I convert PDF to Word without Adobe?

You can use Microsoft Word, Google Docs, or Adobe Acrobat Pro to convert a PDF file into an editable document. If you have MS Word, right-click the file on your computer, select Open with, and then select Word on the menu. Click OK to allow Word to change the display format.


3 Answers

I tried several libraries:

  • PDF Focus .NET: https://sautinsoft.com/products/pdf-focus/index.php
  • Aspose.PDF: https://products.aspose.com/pdf/net
  • Gembox: https://www.gemboxsoftware.com/document
  • Spire.PDF: https://www.e-iceblue.com/Introduce/pdf-for-net-introduce.html
  • considered also using Word via COM automation to open and save to pdf programmatically.

Among all of them I liked PDF Focus .NET best of all, and I will explain why:

  1. They try to keep the structure of the document EDITABLE, so that when I will try to continue editing the text, the paragraph will be smoothly prolonged. Other libraries are trying to do a "minimalistic" approach by inserting absolute positioned shapes, so that if you continue editing the text, it will overlap with the next piece of text.
  2. They do all their best to recognize tables, so that tables in the output document will be REAL TABLES, but not a collection of shapes and texts with absolute positioning (as produced by other libraries).

A customer of ours is evaluating now different libraries, and I will recommend PDF Focus .NET first of all.

P.S. I AM NOT INVOLVED IN ANY KIND OF RELATIONSHIP WITH THIS SOFTWARE PRODUCER. As a former .NET developer I simply see a high quality components which really work fine.

like image 87
Ihor B. Avatar answered Oct 09 '22 05:10

Ihor B.


Use PDF Focus.

Nice and easy.

EDIT: And also

How to convert DOC into other formats using C#

http://dotnetf1.blogspot.com/2008/07/convert-word-doc-into-pdf-using-c-code.html

like image 35
Soner Gönül Avatar answered Oct 09 '22 04:10

Soner Gönül


You need something like GemBox.Document. It's a simple .NET component that enables you to manipulate and convert all kinds of document files.

like image 2
Evale Avatar answered Oct 09 '22 05:10

Evale