Convert Word document (.doc & .docx) to pdf using C # in ASP.NET

I am looking for an easy way to convert doc and docx extension files to pdf using C # and ASP.NET. I previously used iTextSharp for this purpose, but this requires creating a document from scratch. But I want to convert Word files as PDF. For example, if it includes images, tables, etc., they should be converted to pdf as it is. Is there a free library or code? Thanks in advance.

+4
source share
2 answers

1) You can check this PDFConverter , it may be useful for you. This is a COM component called from .NET. 2) Or you can check out this open source PDFSharp library .

3) And the third option is Aspose libraray

+1
source

If you can buy a component, you can use Aspose Words , which is best for converting a Word document to PDF as it is. There is no need to install Ms Office if this component is used.

0
source

Source: https://habr.com/ru/post/1389048/


All Articles