I want to convert HTML to .pdf and .docx file with proper margins, header and footer in C# .Net windows application. I want HTML all content as it is in PDF and WORD both.

Help me how to solve this.

When I download any word file using HTML it does not accurately reflect the subject question named Maths in c# desktop application

please help.and give a proper solution.