Как конвертировать файл word (docx) в pdf с помощью ASP.NET с#
How to convert a word file(docx) to pdf using asp.net c#.Please suggest me a free Api for this i tried with Microsoft.Office.Interop.Word but failed some error is coming "COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))." This will solved by installing word2007 addiin "saveaspdf".but problem is that i cant install this on server. so please help me with a another option to convert word file to pdf with any free api Refference (dll).with out using Microsoft.Office.Interop.Word.
Что я уже пробовал:
i tried with Microsoft.Office.Interop.Word but failed some error is coming "COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))." This will solved by installing word2007 addiin "saveaspdf".but problem is that i cant install this on server.
F-ES Sitecore
Вы будете бороться, чтобы сделать это бесплатно. Word-это проприетарный формат, поэтому любой, кто пишет код для доступа к нему и делает это хорошо, вряд ли отдаст его бесплатно. Есть несколько бесплатных док-ридеров\писателей (Файлы DOCX например), но ни один из них, насколько я знаю, не поддерживает преобразование в PDF. Есть много компонентов, которые сделают это (Spire.Док, Гембокс.Документ), но ни один из них не является бесплатным.