I use aspose for convert doc to pdf.
var doc = new Aspose.Words.Document(filePath);
but i have a Root element is missing exception. Please help.
Thanks for your inquiry. In case you are using an older version of Aspose.Words, I would suggest you please upgrade to the latest version (v13.1.0) from here and let us know how it goes on your side. If the problem still remains, please attach your input Word document here for testing. I will investigate the issue on my side and provide you more information.
It works. Thank you.
Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.