Click here to Skip to main content
16,022,218 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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 word.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.

What I have tried:

I tried with
Microsoft.Office.Interop.Word dll and able to generate PDF file in my local system
Posted
Updated 24-Jul-24 23:19pm

1 solution

Hi,

If the licence applies to you: QuestPDF[^] , this could be a good candidate.
 
Share this answer
 
v2
Comments
Richard Deeming 25-Jul-24 3:58am    
QuestPDF is great at generating PDF files; but it has nothing that would help with converting Word files to PDF.
_Zorro_ 25-Jul-24 4:05am    
My bad
Member 7870005 25-Jul-24 5:21am    
Thanks for your response. But I have to convert .DOCX document to PDF document using C#

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900