-1

I have an ASP.NET MVC project on .NET 4.6.2 that can convert and combine selected docx, xlsx, image files to a pdf file. A can do that by using Microsoft.Office.Interop dlls and pdfsharp library.

It runs on localhost, but on the server it can't. I realized that if I use these dlls, I need office applications to be installed. But my web server doesn't allow or want to install office application. How can I convert docx or xlsx files to pdf without using this kind of dlls but with ASP.NET MVC code?

marc_s
  • 704,970
  • 168
  • 1,303
  • 1,425
  • they are zip files, you can open them and read the XML inside, all Microsoft ___x files are an open standard so you can find the meaning of the content somewhere – rioV8 May 06 '22 at 07:36
  • 1
    welcome to stackoverflow ismail kurnaz. please have a [tour] and learn [ask]. asking for a library (or rather a product) in stackoverflow is generally shunned on. those being said, there are many paid libraries that can convert documents directly to pdf. – Bagus Tesa May 06 '22 at 07:45
  • 1
    You need to use another means of converting to pdf. Suggesting what to use is beyond the scope of this site. – Palle Due May 06 '22 at 07:57
  • Does this answer your question? [Convert Word doc and docx format to PDF in .NET Core without Microsoft.Office.Interop](https://stackoverflow.com/questions/46580718/convert-word-doc-and-docx-format-to-pdf-in-net-core-without-microsoft-office-in) – MD. RAKIB HASAN May 06 '22 at 08:45

0 Answers0